diff options
Diffstat (limited to 'js/tests')
-rw-r--r-- | js/tests/services/persistenceSpec.coffee | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tests/services/persistenceSpec.coffee b/js/tests/services/persistenceSpec.coffee index 1798f3fb4..2dbcb9ed2 100644 --- a/js/tests/services/persistenceSpec.coffee +++ b/js/tests/services/persistenceSpec.coffee @@ -29,9 +29,9 @@ describe '_Persistence', -> beforeEach inject (@_Persistence, @$rootScope) => @req = post: jasmine.createSpy('POST') - get: jasmine.createSpy('GET').andCallFake (url, p1, p2, callback) -> - if callback - callback() + get: jasmine.createSpy('GET').andCallFake (route, data) -> + if angular.isDefined(data) and data.onSuccess + data.onSuccess() @config = itemBatchSize: 12 @active = @@ -42,7 +42,7 @@ describe '_Persistence', -> decrease: -> - xit 'should should show a loading sign when init', => + it 'should should show a loading sign when init', => loading = increase: jasmine.createSpy('loading') decrease: jasmine.createSpy('finished loading') |