We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b483f9 commit 0f126f2Copy full SHA for 0f126f2
packages/router/__tests__/router.spec.ts
@@ -330,15 +330,15 @@ describe('Router', () => {
330
expect(route1.params).toEqual({ p: 'a' })
331
})
332
333
- it('handles an undefined location', async () => {
+ it('warns on undefined location during dev', async () => {
334
const { router } = await newRouter()
335
336
const route1 = router.resolve(undefined as any)
337
expect('router.resolve() was passed an invalid location').toHaveBeenWarned()
338
expect(route1.path).toBe('/')
339
340
341
- it('handles a null location', async () => {
+ it('warns on null location during dev', async () => {
342
343
344
const route1 = router.resolve(null as any)
0 commit comments