diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-14 02:22:36 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-14 02:22:44 +0200 |
commit | df8f6b5fee643c5b2af8e8d33a7865e898518485 (patch) | |
tree | 7100d25d814d5f4b4cf502c9e2b9e6dd5f562ab3 /js/tests/services/models | |
parent | 67d7754c364147c274790a76dab7cbfedd352645 (diff) |
implement pull to refresh, fix #44
Diffstat (limited to 'js/tests/services/models')
-rw-r--r-- | js/tests/services/models/itemmodelSpec.coffee | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/js/tests/services/models/itemmodelSpec.coffee b/js/tests/services/models/itemmodelSpec.coffee index 4decc7918..d2fed6630 100644 --- a/js/tests/services/models/itemmodelSpec.coffee +++ b/js/tests/services/models/itemmodelSpec.coffee @@ -110,4 +110,13 @@ describe 'ItemModel', -> @ItemModel.add({id: 1, guidHash: 'abce', feedId: 2, status: 16}) @ItemModel.add({id: 6, guidHash: 'abcf', feedId: 2, status: 16}) - expect(@ItemModel.getLowestId()).toBe(1)
\ No newline at end of file + expect(@ItemModel.getLowestId()).toBe(1) + + + it 'should return the highest lastModified', => + @ItemModel.add({id: 2, guidHash: 'abc', feedId: 2, lastModified: 3}) + @ItemModel.add({id: 3, guidHash: 'abcd', feedId: 2, lastModified: 13}) + @ItemModel.add({id: 1, guidHash: 'abce', feedId: 2, lastModified: 15}) + @ItemModel.add({id: 6, guidHash: 'abcf', feedId: 2, lastModified: 11}) + + expect(@ItemModel.getLastModified()).toBe(15)
\ No newline at end of file |