diff options
author | Gus Caplan <me@gus.host> | 2018-02-21 20:45:57 -0600 |
---|---|---|
committer | Gus Caplan <me@gus.host> | 2018-02-25 17:03:34 -0600 |
commit | 1708af369ba4cdfbc9f3eadd657508498b8489a3 (patch) | |
tree | 6fb3d04d3e4ef3d0e2c47c7560a6ba94363984d0 /test/parallel/test-stream-buffer-list.js | |
parent | da886d9a4cd923bd5fc33eff7df22ff7d855a00b (diff) | |
download | android-node-v8-1708af369ba4cdfbc9f3eadd657508498b8489a3.tar.gz android-node-v8-1708af369ba4cdfbc9f3eadd657508498b8489a3.tar.bz2 android-node-v8-1708af369ba4cdfbc9f3eadd657508498b8489a3.zip |
util: use blue on non-windows systems for number/bigint
PR-URL: https://github.com/nodejs/node/pull/18925
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test/parallel/test-stream-buffer-list.js')
-rw-r--r-- | test/parallel/test-stream-buffer-list.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-stream-buffer-list.js b/test/parallel/test-stream-buffer-list.js index c151154afa..05804cdc50 100644 --- a/test/parallel/test-stream-buffer-list.js +++ b/test/parallel/test-stream-buffer-list.js @@ -34,7 +34,8 @@ assert.deepStrictEqual(list, new BufferList()); const tmp = util.inspect.defaultOptions.colors; util.inspect.defaultOptions = { colors: true }; +const color = util.inspect.colors[util.inspect.styles.number]; assert.strictEqual( util.inspect(list), - 'BufferList { length: \u001b[33m0\u001b[39m }'); + `BufferList { length: \u001b[${color[0]}m0\u001b[${color[1]}m }`); util.inspect.defaultOptions = { colors: tmp }; |