Created
March 22, 2017 14:50
-
-
Save tomcask/16ddd68ecc58fddb1f250dc3043b1362 to your computer and use it in GitHub Desktop.
How you test State in High order components
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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