react-chartjs-2
Advanced tools
Comparing version 2.4.1 to 2.5.0
{ | ||
"name": "react-chartjs-2", | ||
"version": "2.4.1", | ||
"version": "2.5.0", | ||
"description": "react-chartjs-2", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -125,10 +125,11 @@ import React from 'react'; | ||
const wrapper = mountComponent({ options: {} }); | ||
const defaultLegendOpts = wrapper.prop('legend'); | ||
expect(spy.callCount).to.equal(1); | ||
wrapper.setProps({ options: {} }); | ||
wrapper.setProps({ options: { legend: defaultLegendOpts } }); | ||
expect(spy.callCount).to.equal(1); | ||
wrapper.setProps({ options: { a: 1 } }); | ||
wrapper.setProps({ options: { legend: defaultLegendOpts, a: 1 } }); | ||
@@ -135,0 +136,0 @@ expect(spy.callCount).to.equal(2); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
5448881
87774
32