Skip to content

Commit 2e48970

Browse files
novemberbornsindresorhus
authored andcommitted
Remove unnecessary test to verify throws/notThrows return promises
1 parent d2a294d commit 2e48970

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

test/test.js

-12
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22
const test = require('tap').test;
33
const delay = require('delay');
4-
const isPromise = require('is-promise');
54
const formatValue = require('../lib/format-assert-error').formatValue;
65
const Test = require('../lib/test');
76

@@ -635,17 +634,6 @@ test('number of assertions doesn\'t match plan when the test exits, but before a
635634
t.end();
636635
});
637636

638-
test('assertions return promises', t => {
639-
ava(a => {
640-
a.plan(2);
641-
t.ok(isPromise(a.throws(Promise.reject(new Error('foo')))));
642-
t.ok(isPromise(a.notThrows(Promise.resolve(true))));
643-
}).run().then(passed => {
644-
t.is(passed, true);
645-
t.end();
646-
});
647-
});
648-
649637
test('contextRef', t => {
650638
new Test({
651639
contextRef: {context: {foo: 'bar'}},

0 commit comments

Comments
 (0)