Skip to content

Commit cbba6d3

Browse files
committed
Replace ts-expect-error with ts-ignore for runtime immutability tests
1 parent 38c0eec commit cbba6d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/package-url.test.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ describe('PackageURL', () => {
245245

246246
it('readonly: cannot be written', () => {
247247
expect(() => {
248-
// @ts-expect-error Testing runtime immutability.
248+
// @ts-ignore Testing runtime immutability.
249249
PackageURL.KnownQualifierNames = { foo: 'bar' }
250250
}).toThrow(TypeError)
251251
expect(PackageURL.KnownQualifierNames).not.toStrictEqual({
@@ -255,10 +255,10 @@ describe('PackageURL', () => {
255255

256256
it('frozen: cannot be modified', () => {
257257
expect(() => {
258-
// @ts-expect-error Testing runtime immutability.
258+
// @ts-ignore Testing runtime immutability.
259259
PackageURL.KnownQualifierNames.foo = 'bar'
260260
}).toThrow(TypeError)
261-
// @ts-expect-error Testing runtime immutability.
261+
// @ts-ignore Testing runtime immutability.
262262
expect(PackageURL.KnownQualifierNames.foo).toBe(undefined)
263263
})
264264
})

0 commit comments

Comments
 (0)