Permalink
Please sign in to comment.
24
tests/test.spec.js
@@ -1,24 +0,0 @@ | ||
-import test from 'tape'; | ||
- | ||
-test('tape.spec', (t) => { | ||
- | ||
- t.test('Test 1 should fail', (t) => { | ||
- | ||
- const actual = typeof Array.prototype.map; | ||
- const expected = 'object'; | ||
- | ||
- t.equals(actual, expected, 'typeof Array.prototype.map is "object"'); | ||
- // t.end explicitly tells the test to end if you don't want to use plan | ||
- t.end(); | ||
- }); | ||
- | ||
- t.test('Test 2 should pass', (t) => { | ||
- const actual = typeof Array.prototype.map; | ||
- const expected = 'function'; | ||
- | ||
- t.equals(actual, expected, 'typeof Array.prototype.map is "function"'); | ||
- t.end(); | ||
- }); | ||
- | ||
- t.end(); | ||
-}); |
0 comments on commit
21cee81