Skip to content

Commit 1f982c6

Browse files
committed
test: allow undefined route name in app spec
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 57319fd commit 1f982c6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/tests/App.spec.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@
66
import { beforeEach, describe, expect, it, vi } from 'vitest'
77
import { mount } from '@vue/test-utils'
88

9-
const routeState = {
9+
type RouteState = {
10+
path: string
11+
name: string | undefined
12+
params: Record<string, unknown>
13+
matched: Array<{ meta?: Record<string, unknown> }>
14+
}
15+
16+
const routeState: RouteState = {
1017
path: '/f/filelist/sign',
1118
name: 'fileslist',
1219
params: {},

0 commit comments

Comments
 (0)