You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
504 B
JavaScript

'use strict';
describe('controllers', function(){
var scope;
beforeEach(module('hybridApps'));
beforeEach(inject(function($rootScope) {
scope = $rootScope.$new();
}));
it('should define more than 5 awesome things', inject(function($controller) {
expect(scope.awesomeThings).toBeUndefined();
$controller('MainCtrl', {
$scope: scope
});
expect(angular.isArray(scope.awesomeThings)).toBeTruthy();
expect(scope.awesomeThings.length > 5).toBeTruthy();
}));
});