From 323b3305233884c8f8c6ee500e48409d44a487b9 Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Thu, 28 Nov 2024 14:29:52 -0800 Subject: [PATCH] test: fix bad IconButton test case, with invalid viewBox attribute --- src/IconButton/IconButton.test.tsx | 10 ++++++++-- .../__snapshots__/IconButton.test.tsx.snap | 18 ++++-------------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/src/IconButton/IconButton.test.tsx b/src/IconButton/IconButton.test.tsx index 8e4b2e72c4..b6346270d8 100644 --- a/src/IconButton/IconButton.test.tsx +++ b/src/IconButton/IconButton.test.tsx @@ -20,8 +20,14 @@ describe('', () => { }; const deprecatedFontAwesomeExample = { prefix: 'pgn', - iconName: 'InfoOutlineIcon', - icon: [InfoOutline], + iconName: 'copy', + icon: [ + 448, + 512, + [], + 'f0c5', + 'M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l140.1 0L400 115.9 400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-204.1c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-32-48 0 0 32c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l32 0 0-48-32 0z', + ], }; it('renders with required props', () => { const tree = renderer.create(( diff --git a/src/IconButton/__snapshots__/IconButton.test.tsx.snap b/src/IconButton/__snapshots__/IconButton.test.tsx.snap index dd82977c10..8731eda349 100644 --- a/src/IconButton/__snapshots__/IconButton.test.tsx.snap +++ b/src/IconButton/__snapshots__/IconButton.test.tsx.snap @@ -49,27 +49,17 @@ exports[` renders with deprecated props 1`] = ` >