Skip to content

Commit 783249d

Browse files
committed
feat(DsfrNavigationItem): ✅ useId ne fonctionnait pas dans le test
1 parent d56c8f0 commit 783249d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/DsfrNavigation/DsfrNavigationItem.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { render } from '@testing-library/vue'
22
// import '@gouvfr/dsfr/dist/core/core.module.js'
3-
import { useId } from 'vue'
43

54
import DsfrNavigationItem from './DsfrNavigationItem.vue'
65

76
describe('DsfrNavigationItem', () => {
87
it('should render a navigation item', () => {
98
const content = 'Contenu d’un item de menu de navigation'
10-
const id = useId()
9+
const id = 'dsfr-id'
1110
const { getByText } = render(DsfrNavigationItem, {
1211
props: {
1312
id,

0 commit comments

Comments
 (0)