Skip to content

Instantly share code, notes, and snippets.

@particle4dev
Forked from ericelliott/tape-template.js
Created December 15, 2016 04:44
Show Gist options
  • Select an option

  • Save particle4dev/5e7c586ab2bede56a264afef4dc24073 to your computer and use it in GitHub Desktop.

Select an option

Save particle4dev/5e7c586ab2bede56a264afef4dc24073 to your computer and use it in GitHub Desktop.
// 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