mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 02:02:19 +00:00
Repaired groupServicesSpec, uncommented specs.
As it turns out, the page reload behavior was not caused by $resource, but exists somewhere within the User module. Stubbed out the User module as as done in notificationServicesSpec
This commit is contained in:
parent
09b6401794
commit
2194caec15
1 changed files with 9 additions and 6 deletions
|
|
@ -1,15 +1,18 @@
|
|||
'use strict';
|
||||
|
||||
// @TODO the requests via $resource seem to be
|
||||
// doing a full page reload which breaks the specs
|
||||
describe('groupServices', function() {
|
||||
var $httpBackend, $http, groups;
|
||||
|
||||
xdescribe('groupServices', function() {
|
||||
var $httpBackend, groups;
|
||||
beforeEach(function() {
|
||||
module(function($provide) {
|
||||
$provide.value('User', {});
|
||||
});
|
||||
|
||||
beforeEach(inject(function(_$httpBackend_, Groups) {
|
||||
inject(function(_$httpBackend_, Groups, User) {
|
||||
$httpBackend = _$httpBackend_;
|
||||
groups = Groups;
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
||||
it('calls party endpoint', function() {
|
||||
$httpBackend.expectGET('/api/v2/groups/party').respond({});
|
||||
|
|
|
|||
Loading…
Reference in a new issue