-
-
Save webbower/8f6e7fb40fa60a62f1d261be504d12c9 to your computer and use it in GitHub Desktop.
Tape unit test template https://medium.com/javascript-scene/what-every-unit-test-needs-f6cd34d9836d
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
// A Unit test template for Tape | |
// See 5 Questions every unit test must answer: | |
// https://medium.com/javascript-scene/what-every-unit-test-needs-f6cd34d9836d | |
import test from 'tape'; | |
test('What are you testing?', assert => { | |
const msg = 'what should it do?' | |
const actual = 'what was the output?'; | |
const expected = 'what was the expected output?'; | |
assert.same(actual, expected, msg); | |
assert.end(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment