Created
February 14, 2017 22:43
-
-
Save jfstgermain/497c8bf71762428a331c16306edf0a2e to your computer and use it in GitHub Desktop.
This file contains 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
logger = { | |
log: sinon.spy() | |
}; | |
const greetings = moduleA.greet('Joe Trudeau', logger); | |
expect(logger.log).to.have.been.calledOnce; | |
expect(logger.log).to.have.been.calledWith('Greeting: Joe Trudeau'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment