From dd9a5b855dc756a67530ab3b63c189357f34109d Mon Sep 17 00:00:00 2001 From: Daniel Shuy Date: Wed, 13 Dec 2017 20:33:40 +0800 Subject: [PATCH] Fix test cases for inline prop --- test/unit/specs/Bar.spec.js | 8 ++++---- test/unit/specs/Bubble.spec.js | 8 ++++---- test/unit/specs/Doughnut.spec.js | 8 ++++---- test/unit/specs/HorizontalBar.spec.js | 8 ++++---- test/unit/specs/Line.spec.js | 8 ++++---- test/unit/specs/Pie.spec.js | 8 ++++---- test/unit/specs/PolarArea.spec.js | 8 ++++---- test/unit/specs/Radar.spec.js | 8 ++++---- test/unit/specs/Scatter.spec.js | 8 ++++---- 9 files changed, 36 insertions(+), 36 deletions(-) diff --git a/test/unit/specs/Bar.spec.js b/test/unit/specs/Bar.spec.js index ac5c070e..661e0deb 100644 --- a/test/unit/specs/Bar.spec.js +++ b/test/unit/specs/Bar.spec.js @@ -76,10 +76,10 @@ describe('BarChart', () => { components: { BarChart } }).$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('BarChart', () => { components: { BarChart } }).$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) }) }) diff --git a/test/unit/specs/Bubble.spec.js b/test/unit/specs/Bubble.spec.js index df2c8f5a..8920ad56 100644 --- a/test/unit/specs/Bubble.spec.js +++ b/test/unit/specs/Bubble.spec.js @@ -76,10 +76,10 @@ describe('BubbleChart', () => { components: { BubbleChart } }).$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('BubbleChart', () => { components: { BubbleChart } }).$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) }) }) diff --git a/test/unit/specs/Doughnut.spec.js b/test/unit/specs/Doughnut.spec.js index 6a99f7ec..932eb088 100644 --- a/test/unit/specs/Doughnut.spec.js +++ b/test/unit/specs/Doughnut.spec.js @@ -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) }) }) diff --git a/test/unit/specs/HorizontalBar.spec.js b/test/unit/specs/HorizontalBar.spec.js index e5dcaadf..28633c33 100644 --- a/test/unit/specs/HorizontalBar.spec.js +++ b/test/unit/specs/HorizontalBar.spec.js @@ -76,10 +76,10 @@ describe('HorizontalBarChart', () => { components: { HorizontalBarChart } }).$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('HorizontalBarChart', () => { components: { HorizontalBarChart } }).$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) }) }) diff --git a/test/unit/specs/Line.spec.js b/test/unit/specs/Line.spec.js index 810f38d8..7d87ca7a 100644 --- a/test/unit/specs/Line.spec.js +++ b/test/unit/specs/Line.spec.js @@ -76,10 +76,10 @@ describe('LineChart', () => { components: { LineChart } }).$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('LineChart', () => { components: { LineChart } }).$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) }) }) diff --git a/test/unit/specs/Pie.spec.js b/test/unit/specs/Pie.spec.js index a1e0d3eb..ca0e5ba2 100644 --- a/test/unit/specs/Pie.spec.js +++ b/test/unit/specs/Pie.spec.js @@ -75,10 +75,10 @@ describe('PieChart', () => { components: { PieChart } }).$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', () => { @@ -99,7 +99,7 @@ describe('PieChart', () => { components: { PieChart } }).$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) }) }) diff --git a/test/unit/specs/PolarArea.spec.js b/test/unit/specs/PolarArea.spec.js index 0ffd9464..07ac1927 100644 --- a/test/unit/specs/PolarArea.spec.js +++ b/test/unit/specs/PolarArea.spec.js @@ -76,10 +76,10 @@ describe('PolarChart', () => { components: { PolarChart } }).$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('PolarChart', () => { components: { PolarChart } }).$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) }) }) diff --git a/test/unit/specs/Radar.spec.js b/test/unit/specs/Radar.spec.js index b38cf486..352f12dc 100644 --- a/test/unit/specs/Radar.spec.js +++ b/test/unit/specs/Radar.spec.js @@ -75,10 +75,10 @@ describe('RadarChart', () => { components: { RadarChart } }).$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', () => { @@ -99,7 +99,7 @@ describe('RadarChart', () => { components: { RadarChart } }).$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) }) }) diff --git a/test/unit/specs/Scatter.spec.js b/test/unit/specs/Scatter.spec.js index 6f51a8fd..8e6dc673 100644 --- a/test/unit/specs/Scatter.spec.js +++ b/test/unit/specs/Scatter.spec.js @@ -76,10 +76,10 @@ describe('ScatterChart', () => { components: { ScatterChart } }).$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('ScatterChart', () => { components: { ScatterChart } }).$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) }) })