Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sawyerh committed Feb 25, 2023
1 parent 7b9e3d7 commit 9e86fec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Table/Table.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ describe('Table component', () => {
expect(getByRole('table')).toHaveClass('usa-table usa-table--compact')
})

it('renders full width table', () => {
const { getByRole } = render(<Table fullWidth>{testContent}</Table>)

expect(getByRole('table')).toHaveClass('usa-table width-full')
})

it('renders scrollable table', () => {
const { queryByTestId } = render(<Table scrollable>{testContent}</Table>)

Expand Down

0 comments on commit 9e86fec

Please sign in to comment.