diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-02-28 21:29:08 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-03 23:31:43 +0100 |
commit | 7f2d2cdc0cb45b8c97abf152b5cce6ec43aaaf79 (patch) | |
tree | e4dcbc66efa200b17e85b1cb3d75c6bc43c92356 /test/pseudo-tty | |
parent | d773311c33f0d72931e188aba4bc4fd116fc80bd (diff) | |
download | android-node-v8-7f2d2cdc0cb45b8c97abf152b5cce6ec43aaaf79.tar.gz android-node-v8-7f2d2cdc0cb45b8c97abf152b5cce6ec43aaaf79.tar.bz2 android-node-v8-7f2d2cdc0cb45b8c97abf152b5cce6ec43aaaf79.zip |
test: always activate colors if necessary
PR-URL: https://github.com/nodejs/node/pull/26264
Refs: https://github.com/nodejs/node/pull/26261
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/pseudo-tty')
-rw-r--r-- | test/pseudo-tty/test-assert-colors.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/pseudo-tty/test-assert-colors.js b/test/pseudo-tty/test-assert-colors.js index e843bcb218..76001bf786 100644 --- a/test/pseudo-tty/test-assert-colors.js +++ b/test/pseudo-tty/test-assert-colors.js @@ -5,6 +5,10 @@ const assert = require('assert').strict; try { // Activate colors even if the tty does not support colors. process.env.COLORTERM = '1'; + // Make sure TERM is not set to e.g., 'dumb' and NODE_DISABLE_COLORS is not + // active. + process.env.TERM = 'FOOBAR'; + delete process.env.NODE_DISABLE_COLORS; assert.deepStrictEqual([1, 2, 2, 2], [2, 2, 2, 2]); } catch (err) { const expected = 'Expected values to be strictly deep-equal:\n' + |