mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
Fix test
This commit is contained in:
parent
f750c53ccc
commit
b1b4522b4b
1 changed files with 10 additions and 0 deletions
|
|
@ -184,6 +184,12 @@ describe('Analytics Service', function () {
|
|||
expectedProperties.Level = 24;
|
||||
expectedProperties.Mana = 41;
|
||||
expectedProperties.tutorialComplete = false;
|
||||
expectedProperties["Number Of Tasks"] = {
|
||||
habits: 1,
|
||||
dailys: 1,
|
||||
todos: 1,
|
||||
rewards: 1
|
||||
};
|
||||
|
||||
beforeEach(function() {
|
||||
user._id = 'unique-user-id';
|
||||
|
|
@ -194,6 +200,10 @@ describe('Analytics Service', function () {
|
|||
user.stats.lvl = 24;
|
||||
user.stats.mp = 41;
|
||||
user.flags.tour.intro = 3;
|
||||
user.habits = [{_id: 'habit'}];
|
||||
user.dailys = [{_id: 'daily'}];
|
||||
user.todos = [{_id: 'todo'}];
|
||||
user.rewards = [{_id: 'reward'}];
|
||||
|
||||
analytics.updateUser(properties);
|
||||
clock.tick();
|
||||
|
|
|
|||
Loading…
Reference in a new issue