Skip to content

Commit

Permalink
Reword test descriptions
Browse files Browse the repository at this point in the history
Co-authored-by: Eduardo San Martin Morote <[email protected]>
  • Loading branch information
skirtles-code and posva committed Mar 3, 2024
1 parent 0b483f9 commit 0f126f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/router/__tests__/router.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,15 +330,15 @@ describe('Router', () => {
expect(route1.params).toEqual({ p: 'a' })
})

it('handles an undefined location', async () => {
it('warns on undefined location during dev', async () => {
const { router } = await newRouter()

const route1 = router.resolve(undefined as any)
expect('router.resolve() was passed an invalid location').toHaveBeenWarned()
expect(route1.path).toBe('/')
})

it('handles a null location', async () => {
it('warns on null location during dev', async () => {
const { router } = await newRouter()

const route1 = router.resolve(null as any)
Expand Down

0 comments on commit 0f126f2

Please sign in to comment.