Skip to content

Commit

Permalink
test(unit): swap out with real children
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuoushub committed Nov 22, 2024
1 parent 9ceb481 commit 6167ada
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion web/src/components/Table/Table.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ import Table from './Table'
describe('Table', () => {
it('renders successfully', () => {
expect(() => {
render(<Table headers={[]}>test-children</Table>)
render(
<Table headers={[]}>
<tr>
<th scope="row">Donuts</th>
<td>3,000</td>
</tr>
</Table>
)
}).not.toThrow()
})
})

0 comments on commit 6167ada

Please sign in to comment.