Fix unit tests

This commit is contained in:
Dušan Juretić
2013-12-23 22:38:15 -03:00
parent faeeecdf04
commit 6ab10f9f3d
4 changed files with 8 additions and 7 deletions

View File

@@ -12,25 +12,25 @@ describe('groupServices', function() {
}));
it('calls party endpoint', function() {
$httpBackend.expectGET('/api/v1/groups/party?').respond({});
$httpBackend.expectGET('/api/v2/groups/party?').respond({});
groups.party();
$httpBackend.flush();
});
it('calls tavern endpoint', function() {
$httpBackend.expectGET('/api/v1/groups/habitrpg?').respond({});
$httpBackend.expectGET('/api/v2/groups/habitrpg?').respond({});
groups.tavern();
$httpBackend.flush();
});
it('calls public guilds endpoint', function() {
$httpBackend.expectGET('/api/v1/groups?type=public').respond([]);
$httpBackend.expectGET('/api/v2/groups?type=public').respond([]);
groups.publicGuilds();
$httpBackend.flush();
});
it('calls my guilds endpoint', function() {
$httpBackend.expectGET('/api/v1/groups?type=guilds').respond([]);
$httpBackend.expectGET('/api/v2/groups?type=guilds').respond([]);
groups.myGuilds();
$httpBackend.flush();
});