1'use strict'; 2 3const common = require('../common'); 4const { Readable } = require('stream'); 5 6// This test ensures that there will not be an additional empty 'readable' 7// event when stream has ended (only 1 event signalling about end) 8 9const r = new Readable({ 10 read: () => {}, 11}); 12 13r.push(null); 14 15r.on('readable', common.mustCall()); 16r.on('end', common.mustCall()); 17