2016-06-11 16:48:07 +02:00
|
|
|
'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
|
2016-06-11 16:59:40 +02:00
|
|
|
beforeEach(module('tkApp'));
|
2016-06-11 16:48:07 +02:00
|
|
|
|
|
|
|
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();
|
|
|
|
});
|
|
|
|
|
2016-06-11 16:59:40 +02:00
|
|
|
});
|