mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Using newUser helper in tests
This commit is contained in:
@@ -5,11 +5,9 @@ describe('Inventory Controller', function() {
|
||||
|
||||
beforeEach(module('habitrpg'));
|
||||
beforeEach(inject(function($rootScope, $controller, Shared){
|
||||
user = {
|
||||
balance: 4,
|
||||
stats: {gp: 0},
|
||||
items: {eggs: {Cactus: 1}, hatchingPotions: {Base: 1}, food: {Meat: 1}, pets: {}},
|
||||
};
|
||||
user = specHelper.newUser();
|
||||
user.balance = 4,
|
||||
user.items = {eggs: {Cactus: 1}, hatchingPotions: {Base: 1}, food: {Meat: 1}, pets: {}};
|
||||
Shared.wrap(user);
|
||||
var mockWindow = {
|
||||
confirm: function(msg){
|
||||
|
||||
Reference in New Issue
Block a user