fix unit tests

This commit is contained in:
Dušan Juretić
2013-10-31 22:30:25 -03:00
parent 0ce76ee689
commit f4ac5dfe8c
4 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ describe('userServices', function() {
beforeEach(function(){
module(function($provide){
$window = {href: '', alert: sinon.spy(), location: {search: '', pathname: ''}};
var habitrpgShared = {helpers: {newUser: sinon.spy()}};
$window = {href: '', alert: sinon.spy(), location: {search: '', pathname: ''}, habitrpgShared: habitrpgShared};
$provide.value('$window', $window);
});