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