Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Last active May 14, 2016 02:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericelliott/ca9aa6316920c15fa2c2 to your computer and use it in GitHub Desktop.
Save ericelliott/ca9aa6316920c15fa2c2 to your computer and use it in GitHub Desktop.
bdMjmE
import test from 'tape';
test('A passing test', (assert) => {
assert.pass('This test will pass.');
assert.end();
});
test('Assertions with tape.', (assert) => {
const expected = 'something to test';
const actual = 'sonething to test';
assert.equal(actual, expected,
'Given two mismatched values, .equal() should produce a nice bug report');
assert.end();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment