mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-23 14:17:05 +00:00
Provide user for anaylitcs service test
This commit is contained in:
parent
ab53391fee
commit
71fad8ca97
1 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue