Skip to content

Instantly share code, notes, and snippets.

@mtoso
Last active October 2, 2021 11:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mtoso/fffe10c9977bce642fe1 to your computer and use it in GitHub Desktop.
Save mtoso/fffe10c9977bce642fe1 to your computer and use it in GitHub Desktop.
Unit Test Template
import test from 'tape';
// For each unit test you write,
// answer these questions:
test('What component aspect are you testing?', assert => {
const actual = 'What is the actual output?';
const expected = 'What is the expected output?';
assert.equal(actual, expected,
'What should the feature do?');
assert.end();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment