First root controller test

This commit is contained in:
Dušan Juretić
2014-01-18 20:32:35 -03:00
parent a1df41ad81
commit bca13b5557
2 changed files with 61 additions and 0 deletions

29
test/spec/specHelper.js Normal file
View 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;
}
};