TG-103 : add frontend folder - scaffolded with yeoman
This commit is contained in:
23
frontend/test/spec/controllers/main.js
Normal file
23
frontend/test/spec/controllers/main.js
Normal file
@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
describe('Controller: MainCtrl', function () {
|
||||
|
||||
// load the controller's module
|
||||
beforeEach(module('clientApp'));
|
||||
|
||||
var MainCtrl,
|
||||
scope;
|
||||
|
||||
// Initialize the controller and a mock scope
|
||||
beforeEach(inject(function ($controller, $rootScope) {
|
||||
scope = $rootScope.$new();
|
||||
MainCtrl = $controller('MainCtrl', {
|
||||
$scope: scope
|
||||
// place here mocked dependencies
|
||||
});
|
||||
}));
|
||||
|
||||
it('should attach a list of awesomeThings to the scope', function () {
|
||||
expect(MainCtrl.awesomeThings.length).toBe(3);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user