tools: enable linter in `test/fixtures/errors` · nodejs/node@80d58c3 · GitHub
Skip to content

Commit 80d58c3

Browse files
committed
tools: enable linter in test/fixtures/errors
PR-URL: #57701 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
1 parent ef5275b commit 80d58c3

6 files changed

Lines changed: 9 additions & 7 deletions

File tree

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
throw new Error('Should include grayed stack trace')
1+
'use strict';
2+
throw new Error('Should include grayed stack trace');

test/fixtures/errors/force_colors.snapshot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
*force_colors.js:1
2-
throw new Error('Should include grayed stack trace')
1+
*force_colors.js:2
2+
throw new Error('Should include grayed stack trace');
33
^
44

55
Error: Should include grayed stack trace
6-
at Object.<anonymous> [90m(/[39mtest*force_colors.js:1:7[90m)[39m
6+
at Object.<anonymous> [90m(/[39mtest*force_colors.js:2:7[90m)[39m
77
[90m at *[39m
88
[90m at *[39m
99
[90m at *[39m

test/fixtures/errors/throw_in_eval_anonymous.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ eval(`
66
77
throw new Error('error in anonymous script');
88
9-
`)
9+
`);

test/fixtures/errors/throw_in_eval_named.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/errors/throw_in_line_with_tabs.js

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)