Skip to content

Commit b15e1c6

Browse files
committed
test: silence no-restricted-syntax in source-map assert fixtures
The literal first argument to assert() is intentional in these regression fixtures (the .snapshot files pin the exact source line and column), so disable the rule inline rather than rewriting the call.
1 parent 9a7f346 commit b15e1c6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/fixtures/source-map/output/source_map_assert_no_source_map.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ import { strict as assert } from 'node:assert';
66
// Regression test for https://github.com/nodejs/node/issues/63169
77
// Under --enable-source-maps with no source map for this file, a failing
88
// assert(value) must throw AssertionError, not TypeError ERR_INVALID_ARG_TYPE.
9-
assert(false);
9+
assert(false); // eslint-disable-line no-restricted-syntax

test/fixtures/source-map/output/source_map_assert_ok_no_source_map.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ const assert = require('node:assert');
77
// Regression test for https://github.com/nodejs/node/issues/63169
88
// Under --enable-source-maps with no source map for this file, a failing
99
// assert.ok(value) must throw AssertionError, not TypeError ERR_INVALID_ARG_TYPE.
10-
assert.ok(false);
10+
assert.ok(false); // eslint-disable-line no-restricted-syntax

0 commit comments

Comments
 (0)