Skip to content

Instantly share code, notes, and snippets.

@stipsan
Created June 9, 2017 20:11
Show Gist options
  • Save stipsan/74234962cd9b423b45888be8a5639d75 to your computer and use it in GitHub Desktop.
Save stipsan/74234962cd9b423b45888be8a5639d75 to your computer and use it in GitHub Desktop.
null created by stipsan - https://repl.it/Ieo5/0
const add = require('./add');
describe('add', () => {
it('should add two numbers', () => {
expect(add(1, 2)).toBe(3)
});
});
function add(a, b) {
return a + b;
}
module.exports = add;
{
"testRegex": ".*-test\\.js$",
"testEnvironment": "node"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment