diff --git a/test/VLink.spec.ts b/test/VLink.spec.ts index a437551..fc91dce 100644 --- a/test/VLink.spec.ts +++ b/test/VLink.spec.ts @@ -21,4 +21,16 @@ describe('VLink', () => { expect(a.exists()).toBe(true); expect(a.attributes('href')).toBe('https://example.com'); }) + + test('disables the link when `disabled` is true', () => { + const wrapper = mount(VLink, { + props: {label: 'Disabled', disabled: true } + }) + + const button = wrapper.find('.p-button'); + expect(button.classes()).toContain('disabled'); + expect(button.attributes('aria-disabled')).toBe('true'); + }); + + })