You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
290 B

'use strict';
require('../common');
const assert = require('assert');
const shouldThrow = () => {
process.stdout.end();
};
const validateError = (e) => {
return e instanceof Error &&
e.message === 'process.stdout cannot be closed.';
};
assert.throws(shouldThrow, validateError);