Skip to content

Instantly share code, notes, and snippets.

@dutchcelt
Created September 10, 2017 10:34
Show Gist options
  • Save dutchcelt/4af5ad5c1708d6723fb186e350b5d900 to your computer and use it in GitHub Desktop.
Save dutchcelt/4af5ad5c1708d6723fb186e350b5d900 to your computer and use it in GitHub Desktop.
Unit test example
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