Skip to content

Commit 62be6b4

Browse files
committed
test: update ExternalLink tests to reflect PrimeVue integration
1 parent 3b6fcdf commit 62be6b4

File tree

2 files changed

+6
-44
lines changed

2 files changed

+6
-44
lines changed

test/nuxt/BaseButton.test.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

test/nuxt/ExternalLink.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ describe('externalLink', () => {
66
it('renders link with correct text and href', () => {
77
const wrapper = mount(ExternalLink, {
88
props: {
9-
text: 'Nuxt',
10-
href: 'https://nuxt.com',
9+
text: 'PrimeVue',
10+
href: 'https://primevue.org/setup/',
1111
},
1212
})
1313
const a = wrapper.find('a')
1414
expect(a.exists()).toBe(true)
15-
expect(a.text()).toBe('Nuxt')
16-
expect(a.attributes('href')).toBe('https://nuxt.com')
15+
expect(a.text()).toBe('PrimeVue')
16+
expect(a.attributes('href')).toBe('https://primevue.org/setup/')
1717
expect(a.attributes('target')).toBe('_blank')
1818
})
1919

2020
it('renders default props', () => {
2121
const wrapper = mount(ExternalLink)
2222
const a = wrapper.find('a')
23-
expect(a.text()).toBe('')
24-
expect(a.attributes('href')).toBe('#')
23+
expect(a.text()).toBe('Nuxt')
24+
expect(a.attributes('href')).toBe('https://nuxt.com')
2525
})
2626
})

0 commit comments

Comments
 (0)