Last active
April 1, 2020 03:15
-
-
Save k2works/56835ed397add0408211b52d56decc92 to your computer and use it in GitHub Desktop.
Node TDD Startter
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
const assert = require("assert"); | |
try { | |
assert.strictEqual(5, add(2, 2)); | |
console.log("ok"); | |
} catch (err) { | |
console.log(err); | |
} | |
function add(a, b) { | |
sum = a + b; | |
return sum; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment