mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Use new newUser specHelper syntax
This commit is contained in:
@@ -9,13 +9,17 @@ describe('Inventory Controller', function() {
|
||||
});
|
||||
|
||||
inject(function($rootScope, $controller, Shared){
|
||||
user = specHelper.newUser();
|
||||
user.balance = 4;
|
||||
user.items.eggs = {Cactus: 1};
|
||||
user.items.hatchingPotions = {Base: 1};
|
||||
user.items.food = {Meat: 1};
|
||||
user.items.pets = {}
|
||||
user.items.mounts = {};
|
||||
user = specHelper.newUser({
|
||||
balance: 4,
|
||||
items: {
|
||||
eggs: { Cactus: 1 },
|
||||
hatchingPotions: { Base: 1 },
|
||||
food: { Meat: 1 },
|
||||
pets: {},
|
||||
mounts: {}
|
||||
}
|
||||
});
|
||||
|
||||
Shared.wrap(user);
|
||||
var mockWindow = {
|
||||
confirm: function(msg){
|
||||
|
||||
Reference in New Issue
Block a user