Provide user for anaylitcs service test

This commit is contained in:
Blade Barringer 2015-06-20 15:50:06 -05:00
parent ab53391fee
commit 71fad8ca97

View file

@ -4,9 +4,17 @@
'use strict';
describe('Analytics Service', function () {
var analytics;
var analytics, user;
beforeEach(function() {
user = specHelper.newUser();
user.contributor = { level: 1 };
user.purchased = { plan: true };
module(function($provide) {
$provide.value('User', {user: user});
});
inject(function(Analytics) {
analytics = Analytics;
});