Skip to content

Instantly share code, notes, and snippets.

@tomcask
Created March 22, 2017 14:50
Show Gist options
  • Save tomcask/16ddd68ecc58fddb1f250dc3043b1362 to your computer and use it in GitHub Desktop.
Save tomcask/16ddd68ecc58fddb1f250dc3043b1362 to your computer and use it in GitHub Desktop.
How you test State in High order components
describe('Test the states', () => {
it('should start with operations empty list', () => {
const component = shallow(<App />);
const child = shallow(component.get(0));
expect(child.state('operations')).to.be.eql([]);
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment