Last active
October 13, 2017 05:02
-
-
Save mrowles/8aa62513f9f3bf07770931b1da08a504 to your computer and use it in GitHub Desktop.
BDD Spec Example
This file contains hidden or 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('when swiping the gallery', () => { | |
it('should send analytics of how far the user has swiped', () => { | |
spyOn(AnalyticsService, 'sendEvent'); | |
swipe(); | |
expect(AnalyticsService.sendEvent()) | |
.toHaveBeenCalledWith('gallery', 'swiped', 'right', 99); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment