Skip to content

Commit 62cb0ab

Browse files
committed
test_runner: fix lint in assertion prototype test
1 parent bb37b4e commit 62cb0ab

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/sequential/test-runner-assertion-error-prototype.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,11 @@ const wrappedMetadata = collectAssertionPrototypeMetadata({
7474
assert.deepStrictEqual(wrappedMetadata, arrayPrototypeMetadata);
7575

7676
// Unsupported metadata shapes must be ignored safely.
77-
assert.doesNotThrow(() => applyAssertionPrototypeMetadata(arrayAssertionError, null));
78-
assert.doesNotThrow(() => applyAssertionPrototypeMetadata(arrayAssertionError, {
77+
// These calls are expected to be ignored (no throw, no mutation).
78+
applyAssertionPrototypeMetadata(arrayAssertionError, null);
79+
applyAssertionPrototypeMetadata(arrayAssertionError, {
7980
actual: { baseType: 'map', constructorName: 'ExtendedMap' },
80-
}));
81+
});
8182

8283
// Base type mismatch should not rewrite the value prototype.
8384
const mismatchError = deserializeError(serializeError(objectAssertionError));

0 commit comments

Comments
 (0)