From 7d65d97334c4db0e89ae8d1490ce993d16215517 Mon Sep 17 00:00:00 2001 From: al-rosenthal Date: Thu, 14 Nov 2024 15:25:15 -0800 Subject: [PATCH] test: added test for new body text logic Signed-off-by: al-rosenthal --- .../legacy/core/__tests__/components/BaseToast.test.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/legacy/core/__tests__/components/BaseToast.test.tsx b/packages/legacy/core/__tests__/components/BaseToast.test.tsx index d8e3c59c0e..83ca6ca472 100644 --- a/packages/legacy/core/__tests__/components/BaseToast.test.tsx +++ b/packages/legacy/core/__tests__/components/BaseToast.test.tsx @@ -51,4 +51,10 @@ describe('BaseToast Component', () => { expect(tree).toMatchSnapshot() }) + + test('Toast Renders without body text', () => { + const tree = render() + const bodyText = tree.queryByTestId('ToastBody') + expect(bodyText).toBeNull() + }) })