summaryrefslogtreecommitdiffstats
path: root/js/tests/unit/models/ItemSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/unit/models/ItemSpec.js')
-rw-r--r--js/tests/unit/models/ItemSpec.js43
1 files changed, 0 insertions, 43 deletions
diff --git a/js/tests/unit/models/ItemSpec.js b/js/tests/unit/models/ItemSpec.js
deleted file mode 100644
index 85ee5789e..000000000
--- a/js/tests/unit/models/ItemSpec.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/**
- * ownCloud - News
- *
- * This file is licensed under the Affero General Public License version 3 or
- * later. See the COPYING file.
- *
- * @author Bernhard Posselt <dev@bernhard-posselt.com>
- * @copyright Bernhard Posselt 2014
- */
-describe('Item', function () {
- 'use strict';
-
- beforeEach(module('News'));
-
-
- it('should receive the newestItemId', inject(function (Item) {
- Item.receive(3, 'newestItemId');
-
- expect(Item.getNewestItemId()).toBe(3);
- }));
-
-
- it('should receive the newestItemId', inject(function (Item) {
- Item.receive(2, 'starred');
-
- expect(Item.getStarredCount()).toBe(2);
- }));
-
-
- it('should receive items', inject(function (Item) {
- Item.receive([
- {
- id: 3
- },
- {
- id: 4
- }
- ], 'items');
-
- expect(Item.size()).toBe(2);
- }));
-
-}); \ No newline at end of file