mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
First root controller test
This commit is contained in:
29
test/spec/specHelper.js
Normal file
29
test/spec/specHelper.js
Normal file
@@ -0,0 +1,29 @@
|
||||
specHelper = {
|
||||
newUser: function(){
|
||||
var buffs = {per:0, int:0, con:0, str:0, stealth: 0, streaks: false};
|
||||
user = {
|
||||
auth:{timestamps: {}},
|
||||
stats: {str:1, con:1, per:1, int:1, mp: 32, class: 'warrior', buffs: buffs},
|
||||
items:{
|
||||
lastDrop:{count: 0},
|
||||
hatchingPotions: {},
|
||||
eggs: {},
|
||||
food: {},
|
||||
pets: {},
|
||||
gear: {equipped: {}, costume: {}},
|
||||
},
|
||||
party: {
|
||||
quest: {
|
||||
progress: {down: 0}
|
||||
}
|
||||
},
|
||||
preferences: {},
|
||||
dailys: [],
|
||||
todos: [],
|
||||
rewards: [],
|
||||
flags: {},
|
||||
achievements: {},
|
||||
};
|
||||
return user;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user