mirror of
https://github.com/mattstyles/yeoman-angular-express-plus.git
synced 2026-04-20 03:00:18 -04:00
27 lines
739 B
JavaScript
27 lines
739 B
JavaScript
'use strict';
|
|
|
|
describe( 'Controller: MainCtrl', function() {
|
|
|
|
// load the controller's module
|
|
beforeEach(module( 'yoAngularExpressTestApp' ) );
|
|
|
|
var MainCtrl,
|
|
scope;
|
|
|
|
// Initialize the controller and a mock scope
|
|
beforeEach( inject( function( $controller, $rootScope ) {
|
|
scope = $rootScope.$new();
|
|
MainCtrl = $controller( 'MainCtrl', {
|
|
$scope: scope
|
|
});
|
|
}));
|
|
|
|
it( 'should attach a list of awesomeClientThings to the scope', function() {
|
|
expect( scope.awesomeClientThings.length ).toBe( 8 );
|
|
} );
|
|
|
|
it( 'should attach a list of awesomeServerThings to the scope', function() {
|
|
expect( scope.awesomeServerThings.length ).toBe( 4 );
|
|
} );
|
|
} );
|