mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
added balance to analytics (#8086)
* added balance to analytics * removed if check
This commit is contained in:
committed by
Blade Barringer
parent
3c7f71d214
commit
ed880a665a
@@ -193,6 +193,7 @@ describe('Analytics Service', function () {
|
||||
todos: 1,
|
||||
rewards: 1
|
||||
};
|
||||
expectedProperties.balance = 12;
|
||||
|
||||
beforeEach(function() {
|
||||
user._id = 'unique-user-id';
|
||||
@@ -207,6 +208,7 @@ describe('Analytics Service', function () {
|
||||
user.dailys = [{_id: 'daily'}];
|
||||
user.todos = [{_id: 'todo'}];
|
||||
user.rewards = [{_id: 'reward'}];
|
||||
user.balance = 12;
|
||||
|
||||
analytics.updateUser(properties);
|
||||
clock.tick();
|
||||
@@ -240,7 +242,8 @@ describe('Analytics Service', function () {
|
||||
dailys: 1,
|
||||
habits: 1,
|
||||
rewards: 1
|
||||
}
|
||||
},
|
||||
balance: 12
|
||||
};
|
||||
|
||||
beforeEach(function() {
|
||||
@@ -258,6 +261,7 @@ describe('Analytics Service', function () {
|
||||
user.dailys = [{_id: 'daily'}];
|
||||
user.todos = [{_id: 'todo'}];
|
||||
user.rewards = [{_id: 'reward'}];
|
||||
user.balance = 12;
|
||||
|
||||
analytics.updateUser();
|
||||
clock.tick();
|
||||
|
||||
Reference in New Issue
Block a user