diff options
author | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2016-07-08 14:22:14 +0200 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2016-07-11 15:22:09 +0200 |
commit | f3a38883076a3ffc227f062f0b80ff08ed5e79fe (patch) | |
tree | 33ffe42e51c45d52dfde37c8a11238e9d9ebf188 /test/pseudo-tty/test-tty-stdout-end.js | |
parent | 839f3d971612060ed18a67b051db9e51dfac377f (diff) | |
download | android-node-v8-f3a38883076a3ffc227f062f0b80ff08ed5e79fe.tar.gz android-node-v8-f3a38883076a3ffc227f062f0b80ff08ed5e79fe.tar.bz2 android-node-v8-f3a38883076a3ffc227f062f0b80ff08ed5e79fe.zip |
test: move parallel/test-tty-* to pseudo-tty/
Refs: https://github.com/nodejs/node/pull/7360
PR-URL: https://github.com/nodejs/node/pull/7613
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/pseudo-tty/test-tty-stdout-end.js')
-rw-r--r-- | test/pseudo-tty/test-tty-stdout-end.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/pseudo-tty/test-tty-stdout-end.js b/test/pseudo-tty/test-tty-stdout-end.js new file mode 100644 index 0000000000..a33a2e5ed2 --- /dev/null +++ b/test/pseudo-tty/test-tty-stdout-end.js @@ -0,0 +1,15 @@ +'use strict'; +// Can't test this when 'make test' doesn't assign a tty to the stdout. +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); |