Skip to content

Commit 8b568f4

Browse files
ehmickysindresorhus
authored andcommitted
Add two unit tests covering the all option (#382)
1 parent e003f9c commit 8b568f4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/stream.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ test('buffer: false > promise rejects when process returns non-zero', async t =>
170170
t.is(exitCode, 2);
171171
});
172172

173+
test('can use all: true with stdout: ignore', async t => {
174+
await t.notThrowsAsync(execa('max-buffer', {buffer: false, stdout: 'ignore', all: true}));
175+
});
176+
177+
test('can use all: true with stderr: ignore', async t => {
178+
await t.notThrowsAsync(execa('max-buffer', ['stderr'], {buffer: false, stderr: 'ignore', all: true}));
179+
});
180+
173181
const BUFFER_TIMEOUT = 1e3;
174182

175183
// On Unix (not Windows), a process won't exit if stdout has not been read.

0 commit comments

Comments
 (0)