1234567891011121314 |
- describe('My notes controller', function(){
- var scope;
- beforeEach(module('bootcampApp'));
- beforeEach(inject(function($rootScope, $controller, _Notes_){
- scope = $rootScope.$new();
- Notes = _Notes_;
- $controller('NoteCtrl', {Notes:Notes,$scope:scope});
- }));
- it('has a default new note', function(){
- expect(scope.newNote).not.toBeUndefined();
- });
- });
|