diff options
Diffstat (limited to 'js/tests/unit/controller/AppControllerSpec.js')
-rw-r--r-- | js/tests/unit/controller/AppControllerSpec.js | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/js/tests/unit/controller/AppControllerSpec.js b/js/tests/unit/controller/AppControllerSpec.js index 772fdc565..90dd0aab8 100644 --- a/js/tests/unit/controller/AppControllerSpec.js +++ b/js/tests/unit/controller/AppControllerSpec.js @@ -7,38 +7,39 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -describe('AppController', () => { +describe('AppController', function () { 'use strict'; - let controller; + var controller; - beforeEach(module('News', ($provide) => { + beforeEach(module('News', function ($provide) { $provide.value('BASE_URL', 'base'); })); - beforeEach(inject(($controller) => { + beforeEach(inject(function ($controller) { controller = $controller('AppController'); })); - it('should expose Loading', inject((Loading) => { + it('should expose Loading', inject(function (Loading) { expect(controller.loading).toBe(Loading); })); - it('should expose set firstrun if no feeds and folders', inject(() => { + it('should expose set firstrun if no feeds and folders', function () { expect(controller.isFirstRun()).toBe(true); - })); + }); - it('should expose set firstrun if feeds', inject((FeedResource) => { + it('should expose set firstrun if feeds', inject(function (FeedResource) { FeedResource.add({url: 'test'}); expect(controller.isFirstRun()).toBe(false); })); - it('should expose set firstrun if folders', inject((FolderResource) => { + it('should expose set firstrun if folders', inject( + function (FolderResource) { FolderResource.add({name: 'test'}); expect(controller.isFirstRun()).toBe(false); |