Created
March 6, 2015 03:22
-
-
Save calebdwilliams/6ec18768bccf912bd3ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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