Created
February 27, 2014 12:10
-
-
Save tlvince/9248913 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
describe('User controller', function () { | |
// Load the controller's module | |
beforeEach(module('lmisChromeApp', 'lmisChromeAppMocks')); | |
var q; | |
beforeEach(module(function($provide) { | |
var storageServiceMock = { | |
find: function() { | |
var deferred = q.defer(); | |
deferred.resolve([]); | |
return deferred.promise; | |
}, | |
loadFixtures: function() {} | |
}; | |
$provide.value('storageService', storageServiceMock); | |
})); | |
beforeEach(inject(function($q) { | |
q = $q; | |
})); | |
it('should go to the asdasd', function(done) { | |
inject(function(userFactory) { | |
userFactory.get('1').then(function(result) { | |
expect(result.length).toBe(0); | |
done(); | |
}); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment