Last active
August 29, 2015 14:18
-
-
Save NickHeiner/06b2b0ea7fe44d22745d 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
// app code file | |
const constants = require('./constants'); | |
module.exports = function getGreeting(name) { | |
return CONSTANTS.GREETING_PREFIX + name; | |
} | |
// test code file snippet | |
expect(getGreeting('Sam')).to.equal('Hi, Sam'); | |
// constants file | |
module.exports = {GREETING_PREFIX: 'Hi, '}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment