@navinc/base-react-components
Version:
Nav's Pattern Library
15 lines (13 loc) • 583 B
JavaScript
import { BlockQuote } from './block-quote.js'
import { renderWithContext } from './tests/with-app-context.js'
import { screen } from '@testing-library/react'
describe('Block Quote', () => {
it('test the children of the block quote', () => {
renderWithContext(<BlockQuote>hello there</BlockQuote>)
expect(screen.getByText('hello there')).toBeInTheDocument()
})
it('make sure that color props go though', () => {
renderWithContext(<BlockQuote color="navPrimary">general kenobi</BlockQuote>)
expect(screen.getByText('general kenobi')).toBeInTheDocument()
})
})