Skip to content

Commit

Permalink
Fix test cases for inline prop
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-shuy committed Dec 13, 2017
1 parent 5486560 commit dd9a5b8
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 36 deletions.
8 changes: 4 additions & 4 deletions test/unit/specs/Bar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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)
})
})
8 changes: 4 additions & 4 deletions test/unit/specs/Bubble.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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)
})
})
8 changes: 4 additions & 4 deletions test/unit/specs/Doughnut.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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)
})
})
8 changes: 4 additions & 4 deletions test/unit/specs/HorizontalBar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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)
})
})
8 changes: 4 additions & 4 deletions test/unit/specs/Line.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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)
})
})
8 changes: 4 additions & 4 deletions test/unit/specs/Pie.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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)
})
})
8 changes: 4 additions & 4 deletions test/unit/specs/PolarArea.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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)
})
})
8 changes: 4 additions & 4 deletions test/unit/specs/Radar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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)
})
})
8 changes: 4 additions & 4 deletions test/unit/specs/Scatter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand All @@ -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)
})
})

0 comments on commit dd9a5b8

Please sign in to comment.