Fix test cases for inline prop

This commit is contained in:
Daniel Shuy
2017-12-13 20:33:40 +08:00
parent 5486560257
commit dd9a5b855d
9 changed files with 36 additions and 36 deletions

View File

@@ -76,10 +76,10 @@ describe('DoughnutChart', () => {
components: { DoughnutChart }
}).$mount(el)
expect(vm.$children[0]._plugins).to.exist
expect(vm.$children[0].$data._plugins).to.exist
vm.$children[0].addPlugin(testPlugin)
expect(vm.$children[0]._plugins.length).to.equal(1)
expect(vm.$children[0].$data._plugins.length).to.equal(1)
})
it('should add inline plugins based on prop', () => {
@@ -100,7 +100,7 @@ describe('DoughnutChart', () => {
components: { DoughnutChart }
}).$mount(el)
expect(vm.$children[0]._plugins).to.exist
expect(vm.$children[0]._plugins.length).to.equal(1)
expect(vm.$children[0].$data._plugins).to.exist
expect(vm.$children[0].$data._plugins.length).to.equal(1)
})
})