mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
Fix memberServices test
This commit is contained in:
parent
5583f5fb23
commit
f7f9bb1131
1 changed files with 8 additions and 2 deletions
|
|
@ -6,10 +6,16 @@ describe('memberServices', function() {
|
|||
beforeEach(module('memberServices'));
|
||||
beforeEach(module('habitrpg'));
|
||||
|
||||
beforeEach(inject(function(_$httpBackend_, Members) {
|
||||
beforeEach(function(){
|
||||
inject(function(_$httpBackend_, $rootScope){
|
||||
$httpBackend = _$httpBackend_;
|
||||
$rootScope.Shared = window.habitrpgShared;
|
||||
});
|
||||
// $rootScope.Shared is set, so now we can inject Members
|
||||
inject(function(Members){
|
||||
members = Members;
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
||||
it('has no members at the beginning', function() {
|
||||
expect(members.members).to.be.an('object');
|
||||
|
|
|
|||
Loading…
Reference in a new issue