'use strict'; /** * Created by tykayn on 14/05/15. */ console.log('test for app.js'); describe("A suite", function () { it("contains spec with an expectation", function () { expect(true).toBe(true); }); }); describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('tkApp')); var MainCtrl, scope; scope = 1; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); MainCtrl = $controller('MainCtrl', { $scope: scope }); })); it('should have modules working', function () { expect(module).toBeDefined(); }); it('should have a main controller existing', function () { expect(MainCtrl).toBeDefined(); }); it('should have a scope existing', function () { expect(scope).toBeDefined(); }); });