From 9e86fecc443ef8362af7b705b3088b1720b75c3a Mon Sep 17 00:00:00 2001 From: Sawyer Date: Sat, 25 Feb 2023 13:55:53 -0800 Subject: [PATCH] Add test --- src/components/Table/Table.test.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Table/Table.test.tsx b/src/components/Table/Table.test.tsx index 080d1e23b3..54d01a56d7 100644 --- a/src/components/Table/Table.test.tsx +++ b/src/components/Table/Table.test.tsx @@ -68,6 +68,12 @@ describe('Table component', () => { expect(getByRole('table')).toHaveClass('usa-table usa-table--compact') }) + it('renders full width table', () => { + const { getByRole } = render({testContent}
) + + expect(getByRole('table')).toHaveClass('usa-table width-full') + }) + it('renders scrollable table', () => { const { queryByTestId } = render({testContent}
)