Skip to content

Commit ae69a04

Browse files
fix: remove unrelated change
Co-Authored-By: Antoine du Hamel <[email protected]>
1 parent 369b13f commit ae69a04

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

test/parallel/test-util-styletext.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,12 @@ assert.throws(() => {
3535
}, {
3636
code: 'ERR_INVALID_ARG_VALUE',
3737
});
38-
assert.throws(() => {
39-
util.styleText(['invalid'], 'text');
40-
}, {
41-
code: 'ERR_INVALID_ARG_VALUE',
42-
});
4338

4439
assert.strictEqual(
4540
util.styleText('red', 'test', { validateStream: false }),
4641
'\u001b[31mtest\u001b[39m',
4742
);
43+
4844
assert.strictEqual(
4945
util.styleText(['bold', 'red'], 'test', { validateStream: false }),
5046
'\u001b[1m\u001b[31mtest\u001b[39m\u001b[22m',
@@ -59,14 +55,21 @@ assert.strictEqual(
5955
),
6056
);
6157

58+
assert.throws(() => {
59+
util.styleText(['invalid'], 'text');
60+
}, {
61+
code: 'ERR_INVALID_ARG_VALUE',
62+
});
63+
6264
assert.throws(() => {
6365
util.styleText('red', 'text', { stream: {} });
6466
}, {
6567
code: 'ERR_INVALID_ARG_TYPE',
6668
});
6769

68-
// doesn't throw
70+
// does not throw
6971
util.styleText('red', 'text', { stream: {}, validateStream: false });
72+
7073
assert.strictEqual(
7174
util.styleText('red', 'test', { validateStream: false }),
7275
styled,

0 commit comments

Comments
 (0)