mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Add gear owned to spec helper
This commit is contained in:
@@ -10,8 +10,12 @@ describe('Inventory Controller', function() {
|
|||||||
|
|
||||||
inject(function($rootScope, $controller, Shared){
|
inject(function($rootScope, $controller, Shared){
|
||||||
user = specHelper.newUser();
|
user = specHelper.newUser();
|
||||||
user.balance = 4,
|
user.balance = 4;
|
||||||
user.items = {eggs: {Cactus: 1}, hatchingPotions: {Base: 1}, food: {Meat: 1}, pets: {}, mounts: {}};
|
user.items.eggs = {Cactus: 1};
|
||||||
|
user.items.hatchingPotions = {Base: 1};
|
||||||
|
user.items.food = {Meat: 1};
|
||||||
|
user.items.pets = {}
|
||||||
|
user.items.mounts = {};
|
||||||
Shared.wrap(user);
|
Shared.wrap(user);
|
||||||
var mockWindow = {
|
var mockWindow = {
|
||||||
confirm: function(msg){
|
confirm: function(msg){
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ specHelper = {
|
|||||||
food: {},
|
food: {},
|
||||||
pets: {},
|
pets: {},
|
||||||
mounts: {},
|
mounts: {},
|
||||||
gear: {equipped: {}, costume: {}},
|
gear: {equipped: {}, costume: {}, owned: {}},
|
||||||
},
|
},
|
||||||
party: {
|
party: {
|
||||||
quest: {
|
quest: {
|
||||||
|
|||||||
Reference in New Issue
Block a user