mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Fix memberServices test
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user