diff --git a/test/VLink.spec.ts b/test/VLink.spec.ts index 838ced8..f8b2578 100644 --- a/test/VLink.spec.ts +++ b/test/VLink.spec.ts @@ -42,4 +42,17 @@ describe('VLink', () => { expect(clickHandler).not.toHaveBeenCalled(); }); + test('places icon on the right when `iconRight` is true', () => { + const wrapper = mount(VLink, { + props: { + label: 'link', + icon: "ri-external-link-line", + iconRight: true, + } + }) + const icon = wrapper.find('.p-button-icon-right'); + expect(icon.exists()).toBe(true); + expect(icon.classes()).toContain('ri-external-link-line'); + }) }) +