From 8e3e422d14a89fff89c9abaa8c1c86b187fde1f0 Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Mon, 21 Jul 2025 13:09:44 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test:=20added=20the=20IconRight=20p?= =?UTF-8?q?rops=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/VLink.spec.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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'); + }) }) +