Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should re-render on specified attribute change one level deep', () => {
const GridFast = fastStatelessWrapper(Grid, ['mutable']);
const props = {
mutable: {
one: true,
},
fixed: 'bar',
};
const nextProps = {
mutable: {
one: false,
},
fixed: 'bar',
};
const shallowRenderer = shallow();
const shouldUpdate = shallowRenderer.instance().shouldComponentUpdate(nextProps);
expect(shouldUpdate).to.equal(true);
});