From b32a83c1696963193fba1a5c58460bb37fe2b0ab Mon Sep 17 00:00:00 2001 From: OleksandrNechai Date: Fri, 13 Sep 2024 20:23:30 +0200 Subject: [PATCH] Clarify 'when href, target, rel and onClick' test --- packages/base/Link/src/Link/test.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/base/Link/src/Link/test.tsx b/packages/base/Link/src/Link/test.tsx index 8c4ae848b6..7fb1a8f450 100644 --- a/packages/base/Link/src/Link/test.tsx +++ b/packages/base/Link/src/Link/test.tsx @@ -128,19 +128,17 @@ describe('calculateViewModel', () => { }) }) - describe('when href, target, rel and onClick are provided', () => { - it('applies correct href, target, rel, and onClick', () => { + describe('when href, target and onClick are provided', () => { + it('passes them through to view model', () => { const props = { href: 'https://example.com', target: '_blank', - rel: 'nofollow', onClick: jest.fn(), } const result = calculateViewModel(props) expect(result.href).toBe('https://example.com') expect(result.target).toBe('_blank') - expect(result.rel).toBe('nofollow noopener') expect(result.onClick).toBe(props.onClick) }) })