-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic test to check tape working
- Loading branch information
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const test = require('tape'); | ||
|
||
// Test that tape is working OK | ||
const sum = (a, b) => { | ||
return a + b; | ||
} | ||
|
||
test('sum should return the addition of two numbers', function (t) { | ||
let actual = sum(1, 2); | ||
let expected = 3; | ||
t.equal(actual, expected); | ||
t.end(); | ||
}); |