Created
November 13, 2016 10:30
-
-
Save tomasperezv/5e6fd24d87ba888fefc81ca371358674 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
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