Created
January 19, 2018 16:24
-
-
Save efleming969/2a182f9b9e7112ed631aa156fb3a6a1d 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( "should build a greeting based on age", function() { | |
var ds = new DataService(); | |
sinon.stub( ds, "getMessageBasedOnAge" ) | |
.withArgs( 20 ) | |
.returns( "Yo" ); | |
var g = new Greeting1( ds ); | |
var message = g.build( "Joe", 20 ); | |
assert.equal( message, "Yo, Joe!" ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment