Evan You пре 12 година
родитељ
комит
fede1eb80e
2 измењених фајлова са 33 додато и 1 уклоњено
  1. 9 1
      test/unit/specs/directives.js
  2. 24 0
      test/unit/specs/viewmodel.js

+ 9 - 1
test/unit/specs/directives.js

@@ -570,7 +570,15 @@ describe('UNIT: Directives', function () {
     })
 
     describe('component', function () {
-        // body...
+        
+        it('should work with no args', function () {
+            assert.ok(false)
+        })
+
+        it('should work with arg (passed-in model from parent)', function () {
+            assert.ok(false)
+        })
+
     })
 
     describe('component-id', function () {

+ 24 - 0
test/unit/specs/viewmodel.js

@@ -213,6 +213,30 @@ describe('UNIT: ViewModel', function () {
 
     })
 
+    describe('.$appendTo', function () {
+        it('should pass', function () {
+            assert.ok(false)
+        })
+    })
+
+    describe('.$before', function () {
+        it('should pass', function () {
+            assert.ok(false)
+        })
+    })
+
+    describe('.$after', function () {
+        it('should pass', function () {
+            assert.ok(false)
+        })
+    })
+
+    describe('.$remove', function () {
+        it('should pass', function () {
+            assert.ok(false)
+        })
+    })
+
     describe('.$destroy', function () {
         
         // since this simply delegates to Compiler.prototype.destroy(),