Skip to content

Commit

Permalink
test: Drop unnecessary @ts-expect-error statements
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Mar 11, 2023
1 parent 5fc9a90 commit 0d59d35
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/doc/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,6 @@ describe('reviver', () => {
test('add values to this', () => {
const reviver = jest.fn(function (key, value) {
expect(key).not.toBe('9')
// @ts-expect-error Let's not try to type this
this[9] = 9
return value
})
Expand All @@ -702,7 +701,6 @@ describe('reviver', () => {
test('sequence', () => {
const these: unknown[][] = []
const reviver = jest.fn(function (key, value) {
// @ts-expect-error Let's not try to type this
these.push(Array.from(key === '' ? this[''] : this))
if (key === '0') return undefined
if (key === '3') return 10
Expand Down Expand Up @@ -731,7 +729,6 @@ describe('reviver', () => {
test('!!set', () => {
const these: unknown[][] = []
const reviver = jest.fn(function (key, value) {
// @ts-expect-error Let's not try to type this
these.push(Array.from(key === '' ? this[''] : this))
if (key === 2) return undefined
if (key === 8) return 10
Expand Down Expand Up @@ -760,7 +757,6 @@ describe('reviver', () => {
test('!!omap', () => {
const these: unknown[][] = []
const reviver = jest.fn(function (key, value) {
// @ts-expect-error Let's not try to type this
these.push(Array.from(key === '' ? this[''] : this))
if (key === 2) return undefined
if (key === 8) return 10
Expand Down

0 comments on commit 0d59d35

Please sign in to comment.