mirror of https://github.com/vuejs/vue.git
fix directive deep option test coverage
This commit is contained in:
parent
c7a28d505c
commit
cfade3fa32
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue