this subtest requires tap ≥ 14
Forwarded: not-needed Last-Update: 2021-08-18 Gbp-Pq: Name skip-test-that-require-tap-14.patch
This commit is contained in:
parent
093c1ac7da
commit
abbe2c387b
|
@ -2,22 +2,6 @@
|
||||||
const t = require('tap')
|
const t = require('tap')
|
||||||
const MP = require('../index.js')
|
const MP = require('../index.js')
|
||||||
|
|
||||||
t.test('basic', async t => {
|
|
||||||
const mp = new MP()
|
|
||||||
let i = 5
|
|
||||||
const interval = setInterval(() => {
|
|
||||||
if (i --> 0)
|
|
||||||
mp.write('foo\n')
|
|
||||||
else {
|
|
||||||
clearInterval(interval)
|
|
||||||
mp.end()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
mp.setEncoding('utf8')
|
|
||||||
const all = await mp.collect()
|
|
||||||
t.same(all, ['foo\n','foo\n','foo\n','foo\n','foo\n'])
|
|
||||||
})
|
|
||||||
|
|
||||||
t.test('error', async t => {
|
t.test('error', async t => {
|
||||||
const mp = new MP()
|
const mp = new MP()
|
||||||
const poop = new Error('poop')
|
const poop = new Error('poop')
|
||||||
|
|
Loading…
Reference in New Issue