Sha256: 4d5209fdc907694241bc0f196de7561382be1c143f57f5a62b648c18681dd626

Contents?: true

Size: 300 Bytes

Versions: 5

Compression:

Stored size: 300 Bytes

Contents

'use strict';
require('../common');
const assert = require('assert');

const shouldThrow = function() {
  process.stdout.end();
};

const validateError = function(e) {
  return e instanceof Error &&
    e.message === 'process.stdout cannot be closed.';
};

assert.throws(shouldThrow, validateError);

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
node-compiler-0.9.1 vendor/node/test/pseudo-tty/test-tty-stdout-end.js
node-compiler-0.9.0 vendor/node-v7.2.1/test/pseudo-tty/test-tty-stdout-end.js
node-compiler-0.8.0 vendor/node-v7.2.0/test/pseudo-tty/test-tty-stdout-end.js
node-compiler-0.7.0 vendor/node-v6.9.1/test/pseudo-tty/test-tty-stdout-end.js
node-compiler-0.7.0 vendor/node-v7.1.0/test/pseudo-tty/test-tty-stdout-end.js