App created during angularjs bootcamp.

controllerSpec.js 375B

1234567891011121314
  1. describe('My notes controller', function(){
  2. var scope;
  3. beforeEach(module('bootcampApp'));
  4. beforeEach(inject(function($rootScope, $controller, _Notes_){
  5. scope = $rootScope.$new();
  6. Notes = _Notes_;
  7. $controller('NoteCtrl', {Notes:Notes,$scope:scope});
  8. }));
  9. it('has a default new note', function(){
  10. expect(scope.newNote).not.toBeUndefined();
  11. });
  12. });