From cfade3fa32f78a6bbfbababb94ba45ec91b7d189 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 30 Nov 2014 14:16:22 -0500 Subject: [PATCH] fix directive deep option test coverage --- test/unit/specs/directive_spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/specs/directive_spec.js b/test/unit/specs/directive_spec.js index a6823e779..f8662283d 100644 --- a/test/unit/specs/directive_spec.js +++ b/test/unit/specs/directive_spec.js @@ -16,7 +16,7 @@ describe('Directive', function () { vm = new Vue({ data:{ a:1, - b: { c: 2 } + b: { c: { d: 2 }} }, filters: { test: function (v) { @@ -154,7 +154,7 @@ describe('Directive', function () { var d = new Directive('test', el, vm, { expression: 'b' }, def) - vm.b.c = 3 + vm.b.c.d = 3 nextTick(function () { expect(def.update.calls.count()).toBe(2) done()