diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-20 17:01:59 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-20 17:01:59 +0200 |
commit | 5a7b1e0c36c2dd564f44568de766118b07be49ad (patch) | |
tree | 23b9f80bb4509dd51948c3851660f5fa3754031d /js/tests/unit/models/ItemSpec.js | |
parent | b5d5b2b22a2b4aabd4c9bb5c8b89aae10facc735 (diff) |
rename model to resource
Diffstat (limited to 'js/tests/unit/models/ItemSpec.js')
-rw-r--r-- | js/tests/unit/models/ItemSpec.js | 43 |
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 |