diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-12-20 17:30:51 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-12-20 17:30:51 +0100 |
commit | 0454021bc3e65dba6f2509498d0bcff26ff82a6d (patch) | |
tree | e47c19832f864a5d2a06e0edb66e2d23599510ef /js/tests/services/persistenceSpec.coffee | |
parent | 67daf1074702f8ee8e0720c6f864bc4b8eb3780c (diff) |
Revert "prevent multiple autopage requests, fix #201"
This reverts commit 67daf1074702f8ee8e0720c6f864bc4b8eb3780c.
Diffstat (limited to 'js/tests/services/persistenceSpec.coffee')
-rw-r--r-- | js/tests/services/persistenceSpec.coffee | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/js/tests/services/persistenceSpec.coffee b/js/tests/services/persistenceSpec.coffee index 323a41330..b9250b974 100644 --- a/js/tests/services/persistenceSpec.coffee +++ b/js/tests/services/persistenceSpec.coffee @@ -74,37 +74,6 @@ describe 'Persistence', -> expect(@req.get).toHaveBeenCalledWith('news_items', expected) - it 'should reset the autopage lock when loading a new feed', => - data = - items: [] - called = 0 - @req.get.andCallFake (route, params) -> - params.onSuccess(data) - called++ - - success = -> - @Persistence.getItems(2, 3, 4, success) - @Persistence.getItems(2, 3, 0, success) - - expect(called).toBe(2) - - - it 'should not send autopage request if reqeust returned nothing', => - data = - items: [] - called = 0 - @req.get.andCallFake (route, params) -> - params.onSuccess(data) - called++ - - success = -> - @Persistence.getItems(2, 3, 4, success) - @Persistence.getItems(2, 3, 4, success) - - expect(called).toBe(1) - - - it 'should send a load new items request', => success = -> params = @@ -477,5 +446,3 @@ describe 'Persistence', -> expect(@req.post).toHaveBeenCalledWith('news_usersettings_setcompact', expected) - - |