Created
June 17, 2018 21:21
-
-
Save kcmr/8cf4e37a1cb793c128352d76a14b8b72 to your computer and use it in GitHub Desktop.
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
test('Example using spy', () => { | |
const spy = sinon.spy(sut, 'doSomething'); | |
sut.doSomething(); | |
assert.isTrue(spy.called); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment