| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 846cba0 commit 91b6145
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,10 @@ const assert = require('assert').strict; | |||
| 5 | 5 | try { | |
| 6 | 6 | // Activate colors even if the tty does not support colors. | |
| 7 | 7 | process.env.COLORTERM = '1'; | |
| 8 | + // Make sure TERM is not set to e.g., 'dumb' and NODE_DISABLE_COLORS is not | ||
| 9 | + // active. | ||
| 10 | + process.env.TERM = 'FOOBAR'; | ||
| 11 | + delete process.env.NODE_DISABLE_COLORS; | ||
| 8 | 12 | assert.deepStrictEqual([1, 2, 2, 2], [2, 2, 2, 2]); | |
| 9 | 13 | } catch (err) { | |
| 10 | 14 | const expected = 'Expected values to be strictly deep-equal:\n' + | |
| Back | FazBrowse Home | New Git URL |
0 commit comments