Last active
October 7, 2017 22:14
-
-
Save cakeinpanic/131ecd376b2d73b736e79bf20812b4f5 to your computer and use it in GitHub Desktop.
gist for medium
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('someMethod would be ran with iterator each second', (done) => { | |
myService.someMethod(); | |
setTimeout(() => { | |
expect(logger.logObservable).toHaveBeenCalledTimes(2); | |
expect(logger.logInterval).toHaveBeenCalledTimes(1); | |
done(); | |
}, 2 * 1000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment