%PDF- %PDF-
| Direktori : /home/vacivi36/vittasync.vacivitta.com.br/vittasync/node/test/parallel/ |
| Current File : /home/vacivi36/vittasync.vacivitta.com.br/vittasync/node/test/parallel/test-readable-single-end.js |
'use strict';
const common = require('../common');
const { Readable } = require('stream');
// This test ensures that there will not be an additional empty 'readable'
// event when stream has ended (only 1 event signalling about end)
const r = new Readable({
read: () => {},
});
r.push(null);
r.on('readable', common.mustCall());
r.on('end', common.mustCall());