mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 05:25:19 +00:00
tools: enable linter in test/fixtures/errors
PR-URL: https://github.com/nodejs/node/pull/57701 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
This commit is contained in:
parent
274898af4c
commit
caf478b72e
@ -60,6 +60,7 @@ export default [
|
||||
// We want to lint only a few specific fixtures folders
|
||||
'test/fixtures/*',
|
||||
'!test/fixtures/console',
|
||||
'!test/fixtures/errors',
|
||||
'!test/fixtures/eval',
|
||||
'!test/fixtures/test-runner',
|
||||
'test/fixtures/test-runner/*',
|
||||
|
3
test/fixtures/errors/force_colors.js
vendored
3
test/fixtures/errors/force_colors.js
vendored
@ -1 +1,2 @@
|
||||
throw new Error('Should include grayed stack trace')
|
||||
'use strict';
|
||||
throw new Error('Should include grayed stack trace');
|
||||
|
6
test/fixtures/errors/force_colors.snapshot
vendored
6
test/fixtures/errors/force_colors.snapshot
vendored
@ -1,9 +1,9 @@
|
||||
*force_colors.js:1
|
||||
throw new Error('Should include grayed stack trace')
|
||||
*force_colors.js:2
|
||||
throw new Error('Should include grayed stack trace');
|
||||
^
|
||||
|
||||
Error: Should include grayed stack trace
|
||||
at Object.<anonymous> [90m(/[39mtest*force_colors.js:1:7[90m)[39m
|
||||
at Object.<anonymous> [90m(/[39mtest*force_colors.js:2:7[90m)[39m
|
||||
[90m at *[39m
|
||||
[90m at *[39m
|
||||
[90m at *[39m
|
||||
|
@ -6,4 +6,4 @@ eval(`
|
||||
|
||||
throw new Error('error in anonymous script');
|
||||
|
||||
`)
|
||||
`);
|
||||
|
2
test/fixtures/errors/throw_in_eval_named.js
vendored
2
test/fixtures/errors/throw_in_eval_named.js
vendored
@ -6,4 +6,4 @@ eval(`
|
||||
|
||||
throw new Error('error in named script');
|
||||
|
||||
//# sourceURL=evalscript.js`)
|
||||
//# sourceURL=evalscript.js`);
|
||||
|
@ -19,7 +19,7 @@
|
||||
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||||
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
/* eslint-disable indent, no-tabs */
|
||||
/* eslint-disable @stylistic/js/indent, @stylistic/js/no-tabs */
|
||||
'use strict';
|
||||
require('../../common');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user