Skip to content

Commit

Permalink
ensure pipe methods on stream
Browse files Browse the repository at this point in the history
See #244
  • Loading branch information
floatdrop committed Nov 14, 2016
1 parent 9af0330 commit 892813f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ test.cb('redirect response contains old url', t => {
});
});

test('check for pipe method', t => {
const stream = got.stream(`${s.url}/`);
t.is(typeof stream.pipe, 'function');
t.is(typeof stream.on('error', () => {}).pipe, 'function');
});

test.after('cleanup', async () => {
await s.close();
});

0 comments on commit 892813f

Please sign in to comment.