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({
|
vm = new Vue({
|
||||||
data:{
|
data:{
|
||||||
a:1,
|
a:1,
|
||||||
b: { c: 2 }
|
b: { c: { d: 2 }}
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
test: function (v) {
|
test: function (v) {
|
||||||
|
@ -154,7 +154,7 @@ describe('Directive', function () {
|
||||||
var d = new Directive('test', el, vm, {
|
var d = new Directive('test', el, vm, {
|
||||||
expression: 'b'
|
expression: 'b'
|
||||||
}, def)
|
}, def)
|
||||||
vm.b.c = 3
|
vm.b.c.d = 3
|
||||||
nextTick(function () {
|
nextTick(function () {
|
||||||
expect(def.update.calls.count()).toBe(2)
|
expect(def.update.calls.count()).toBe(2)
|
||||||
done()
|
done()
|
||||||
|
|
Loading…
Reference in New Issue