node/test/parallel/test-repl-tab.js
Antoine du Hamel fc203b36f4
test: ensure assertions are reached on more tests
PR-URL: https://github.com/nodejs/node/pull/60763
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2025-11-24 23:51:26 +01:00

16 lines
444 B
JavaScript

'use strict';
const common = require('../common');
const repl = require('repl');
const zlib = require('zlib');
// Just use builtin stream inherited from Duplex
const putIn = zlib.createGzip();
const testMe = repl.start('', putIn, function(cmd, context, filename,
callback) {
callback(null, cmd);
});
testMe._domain.on('error', common.mustNotCall());
testMe.complete('', common.mustSucceed());