UNPKG

@navinc/base-react-components

Version:
15 lines (13 loc) 495 B
import React from 'react' import { render } from '../tests/with-app-context.js' import PlanItem from './plan-item.js' describe('PlanItem', () => { it('renders a most popular flag if most popular', () => { const { getByText } = render(<PlanItem isMostPopular />) expect(getByText(/most popular/i)) }) it('renders current plan indicator if plan is current plan', () => { const { getByText } = render(<PlanItem isActivePlanCode />) expect(getByText(/current plan/i)) }) })