mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Fixed more tests
This commit is contained in:
@@ -6,7 +6,7 @@ describe('Inventory Controller', function() {
|
||||
beforeEach(function() {
|
||||
module(function($provide) {});
|
||||
|
||||
inject(function($rootScope, $controller, Shared, User) {
|
||||
inject(function($rootScope, $controller, Shared, User, $location, $window) {
|
||||
user = specHelper.newUser({
|
||||
balance: 4,
|
||||
items: {
|
||||
@@ -24,10 +24,11 @@ describe('Inventory Controller', function() {
|
||||
|
||||
Shared.wrap(user);
|
||||
var mockWindow = {
|
||||
confirm: function(msg){
|
||||
confirm: function(msg) {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
scope = $rootScope.$new();
|
||||
rootScope = $rootScope;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user