Skip to content

Commit

Permalink
chore: missing imports & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jan 2, 2025
1 parent b062303 commit fa72818
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion playground/error.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<template>
<div>error page</div>
<div>error page</div>
</template>
3 changes: 2 additions & 1 deletion playground/pages/throw-error.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts" setup>
throw new Error('throw error')
</script>

<template>
<div>throw error</div>
<div>throw error</div>
</template>
2 changes: 1 addition & 1 deletion src/runtime/app/plugins/titles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { UseHeadOptions } from '@unhead/vue'
import { useHead } from '@unhead/vue'
import { defineNuxtPlugin, useRoute } from 'nuxt/app'
import { defineNuxtPlugin, useError, useRoute } from 'nuxt/app'
import { titleCase } from 'scule'
import { withoutTrailingSlash } from 'ufo'
import { computed } from 'vue'
Expand Down
6 changes: 3 additions & 3 deletions test/fixtures/basic/__runtime__/breadcrumbs.nuxt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('useBreadcrumbItems', () => {
return {
t: vi.fn().mockImplementation((s: string, fallback: string) => {
return fallback
})
}),
}
})
// change the path
Expand Down Expand Up @@ -157,7 +157,7 @@ describe('useBreadcrumbItems', () => {
return {
t: vi.fn().mockImplementation((s: string, fallback: string) => {
return fallback
})
}),
}
})
// change the path
Expand Down Expand Up @@ -225,7 +225,7 @@ describe('useBreadcrumbItems', () => {
return {
t: vi.fn().mockImplementation((s: string, fallback: string) => {
return fallback
})
}),
}
})
// change the path
Expand Down

0 comments on commit fa72818

Please sign in to comment.