Created
August 22, 2018 20:32
-
-
Save ffMathy/d5c2e52780afcec6d1e8f5c75187d86e 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
const mockedCalculator = mock(RealCalculator); | |
const calculator = instance(mockedCalculator); | |
calculator.add(1, 2); | |
verify(mockedCalculator.add(anything(), 2)).called(); | |
verify(mockedCalculator.add(1, between(1, 5)).called(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment