Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fb0dea2

Browse filesBrowse files
committed
test: satisfy typescript
1 parent e7b0784 commit fb0dea2
Copy full SHA for fb0dea2

2 files changed

+3-2Lines changed: 3 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎examples/app-vitest-full/tests/nuxt/routing.spec.ts‎

Copy file name to clipboardExpand all lines: examples/app-vitest-full/tests/nuxt/routing.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import App from '~/app.vue'
66

77
describe('routing', () => {
88
it('defaults to index page', async () => {
9-
expect(useRoute().matched[0].meta).toMatchInlineSnapshot(`
9+
expect(useRoute().matched[0]!.meta).toMatchInlineSnapshot(`
1010
{
1111
"value": "set in index",
1212
}
Collapse file

‎examples/app-vitest-full/tests/nuxt/server.spec.ts‎

Copy file name to clipboardExpand all lines: examples/app-vitest-full/tests/nuxt/server.spec.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ describe('server mocks and data fetching', () => {
1414
eventHandler(() => ({ id: 1 })),
1515
)
1616
const server = await listen(toNodeListener(app))
17-
const [{ url }] = await server.getURLs()
17+
const urls = await server.getURLs()
18+
const { url } = urls[0]!
1819
expect(await $fetch<unknown>('/todos/1', { baseURL: url })).toMatchObject({
1920
id: 1,
2021
})

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.