Skip to content

Instantly share code, notes, and snippets.

@ofirdagan
Last active November 13, 2016 08:43
Show Gist options
  • Save ofirdagan/3ec8dd1f9e4232b7aa6cc85fa016023d to your computer and use it in GitHub Desktop.
Save ofirdagan/3ec8dd1f9e4232b7aa6cc85fa016023d to your computer and use it in GitHub Desktop.
enzyme drivers second test
it('should tapOn', () => {
const tapSpy = jasmine.createSpy('tap');
//given
driver.render({text: 'hello driver', onTap: tapSpy});
//when
driver.tap();
//then
expect(tapSpy).toHaveBeenCalled();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment