Skip to content

Instantly share code, notes, and snippets.

@kcmr
Created June 17, 2018 21:21
Show Gist options
  • Save kcmr/56cd408bf36f8f88b16db95e15e01443 to your computer and use it in GitHub Desktop.
Save kcmr/56cd408bf36f8f88b16db95e15e01443 to your computer and use it in GitHub Desktop.
test('Example using stub', () => {
const stub = sinon.stub(sut, 'doSomething');
sut.doSomething();
assert.isTrue(stub.called);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment