Last active
December 20, 2017 13:13
-
-
Save jhackett1/ec6cd6aa631d2c302d1010fd74d1e901 to your computer and use it in GitHub Desktop.
A function just crying out for a unit test
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
// This function should return a user object. Does it? | |
module.exports.getUser = function(){ | |
var user = { | |
firstName: "Dave", | |
lastName: "Bowman", | |
occupation: "Astronaut", | |
admin: false | |
} | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment