Last active
November 13, 2016 08:43
-
-
Save ofirdagan/3ec8dd1f9e4232b7aa6cc85fa016023d to your computer and use it in GitHub Desktop.
enzyme drivers second test
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
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