Explorar o código

Change controllerSpec to noteSpec

Lily Carpenter %!s(int64=10) %!d(string=hai) anos
pai
achega
1739375a06
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tests/controllerSpec.js

+ 4 - 0
tests/controllerSpec.js

@@ -7,6 +7,10 @@ describe('My notes controller', function(){
7 7
     $controller('NoteCtrl', {Notes:Notes,$scope:scope});
8 8
   }));
9 9
 
10
+  it('initializes default notes list', function(){
11
+    expect(scope.notes).not.toBeUndefined();
12
+  });
13
+
10 14
   it('has a default new note', function(){
11 15
     expect(scope.newNote).not.toBeUndefined();
12 16
   });