mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Add test for addHourglass
This commit is contained in:
@@ -49,7 +49,13 @@ describe.only('Footer Controller', function() {
|
||||
});
|
||||
|
||||
describe('#addHourglass', function() {
|
||||
it('posts to /user/addHourglass');
|
||||
it('posts to /user/addHourglass', inject(function($httpBackend) {
|
||||
$httpBackend.expectPOST('/api/v2/user/addHourglass').respond({});
|
||||
|
||||
scope.addHourglass();
|
||||
|
||||
$httpBackend.flush();
|
||||
}));
|
||||
});
|
||||
|
||||
describe('#addGold', function() {
|
||||
|
||||
Reference in New Issue
Block a user