From abbe2c387b4dfb8e1155e88f14c730c84487d5be Mon Sep 17 00:00:00 2001 From: Yadd Date: Wed, 15 Feb 2023 11:05:43 +0800 Subject: [PATCH] =?UTF-8?q?this=20subtest=20requires=20tap=20=E2=89=A5=201?= =?UTF-8?q?4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Forwarded: not-needed Last-Update: 2021-08-18 Gbp-Pq: Name skip-test-that-require-tap-14.patch --- test/collect.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/test/collect.js b/test/collect.js index 4d699ea..94020db 100644 --- a/test/collect.js +++ b/test/collect.js @@ -2,22 +2,6 @@ const t = require('tap') 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 => { const mp = new MP() const poop = new Error('poop')