Skip to content

Instantly share code, notes, and snippets.

@tomasperezv
Created November 13, 2016 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomasperezv/5e6fd24d87ba888fefc81ca371358674 to your computer and use it in GitHub Desktop.
Save tomasperezv/5e6fd24d87ba888fefc81ca371358674 to your computer and use it in GitHub Desktop.
it('#intercept overrides method calls', () => {
const spy = new Spy();
const mock = spy.watch(originalObject);
mock.testMethod();
assert.equal(spy.get('testMethod').called, true);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment