Skip to content

Commit

Permalink
chore: adjust test case type checking
Browse files Browse the repository at this point in the history
context: the type usage is incorrect and was previously ignored by ts-expect-error,
but with 3.5 the error happens at the call level so it is safer to just any it.
  • Loading branch information
yyx990803 committed Jun 4, 2024
1 parent 0901d1b commit 7186b74
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/router/__tests__/RouterLink.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @jest-environment jsdom
*/
import { RouterLink, RouterLinkProps } from '../src/RouterLink'
import { RouterLink } from '../src/RouterLink'
import {
START_LOCATION_NORMALIZED,
RouteQueryAndHash,
Expand Down Expand Up @@ -919,9 +919,8 @@ describe('RouterLink', () => {
components: { RouterLink },
name: 'AppLink',

// @ts-expect-error
props: {
...((RouterLink as any).props as RouterLinkProps),
...(RouterLink as any).props,
inactiveClass: String as PropType<string>,
},

Expand Down

0 comments on commit 7186b74

Please sign in to comment.