Files
node/test/parallel/test-stream-readable-with-unimplemented-_read.js
T
2017-12-08 16:02:07 -05:00

12 lines
274 B
JavaScript

'use strict';
const common = require('../common');
const stream = require('stream');
const readable = new stream.Readable();
common.expectsError(() => readable.read(), {
code: 'ERR_STREAM_READ_NOT_IMPLEMENTED',
type: Error,
message: '_read() is not implemented'
});