Skip to content

Instantly share code, notes, and snippets.

@jhackett1
Last active December 20, 2017 13:13
Show Gist options
  • Save jhackett1/ec6cd6aa631d2c302d1010fd74d1e901 to your computer and use it in GitHub Desktop.
Save jhackett1/ec6cd6aa631d2c302d1010fd74d1e901 to your computer and use it in GitHub Desktop.
A function just crying out for a unit test
// 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