Skip to content

Commit

Permalink
Add basic test verifying component render w/ props
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonlenz committed Jan 12, 2021
1 parent f8db555 commit 7efcce7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/GovBanner/GovBanner.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@ describe('GovBanner component', () => {
)
expect(queryByTestId('govBanner')).toHaveAttribute('aria-label')
})

it('renders with language and tld props passed', () => {
const { queryByTestId } = render(
<GovBanner language="english" tld=".mil" />
)
expect(queryByTestId('govBanner')).toBeInTheDocument
})
})

0 comments on commit 7efcce7

Please sign in to comment.