Skip to content

Instantly share code, notes, and snippets.

@calebdwilliams
Created March 6, 2015 03:22
Show Gist options
  • Save calebdwilliams/6ec18768bccf912bd3ee to your computer and use it in GitHub Desktop.
Save calebdwilliams/6ec18768bccf912bd3ee to your computer and use it in GitHub Desktop.
describe('GridController', function() {
beforeEach(module('GridApp'));
var GridApp, controller, scope, ctrl;
beforeEach(inject(function($rootScope, $controller) {
scope = $rootScope.$new();
controller = $controller;
ctrl = controller('GridController', {
$scope: scope
});
}));
it('should contain five columns', function() {
expect(ctrl.columns.length).toBe(5);
});
it('should start with 10 rows', function() {
expect(ctrl.rows.length).toBe(10);
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment