Skip to content

Instantly share code, notes, and snippets.

@ofirdagan
Created November 12, 2016 21:42
Show Gist options
  • Save ofirdagan/e2a589204281e2706a0563757ba183e4 to your computer and use it in GitHub Desktop.
Save ofirdagan/e2a589204281e2706a0563757ba183e4 to your computer and use it in GitHub Desktop.
enzyme-drivers-test
it('should render component', () => {
//given
driver.render({text: 'It works!'});
//then
expect(driver.text).toBe('It works!');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment