Kaynağa Gözat

Change controllerSpec to noteSpec

Lily Carpenter 10 yıl önce
ebeveyn
işleme
1739375a06
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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
   });