Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cfade3f

Browse files
committed
fix directive deep option test coverage
1 parent c7a28d5 commit cfade3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/specs/directive_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('Directive', function () {
1616
vm = new Vue({
1717
data:{
1818
a:1,
19-
b: { c: 2 }
19+
b: { c: { d: 2 }}
2020
},
2121
filters: {
2222
test: function (v) {
@@ -154,7 +154,7 @@ describe('Directive', function () {
154154
var d = new Directive('test', el, vm, {
155155
expression: 'b'
156156
}, def)
157-
vm.b.c = 3
157+
vm.b.c.d = 3
158158
nextTick(function () {
159159
expect(def.update.calls.count()).toBe(2)
160160
done()

0 commit comments

Comments
 (0)