mirror of
https://github.com/langgenius/dify.git
synced 2026-09-07 18:36:02 +08:00
21 lines
620 B
TypeScript
21 lines
620 B
TypeScript
import { render, screen } from '@testing-library/react'
|
|
import { PlanBadge } from '../index'
|
|
|
|
describe('PlanBadge', () => {
|
|
it('should render sandbox plan', () => {
|
|
render(<PlanBadge plan="sandbox" />)
|
|
|
|
expect(screen.getByText('sandbox')).toBeInTheDocument()
|
|
})
|
|
|
|
it('should render professional badge when plan is professional', () => {
|
|
render(<PlanBadge plan="professional" />)
|
|
expect(screen.getByText('pro')).toBeInTheDocument()
|
|
})
|
|
|
|
it('should render team badge when plan is team', () => {
|
|
render(<PlanBadge plan="team" />)
|
|
expect(screen.getByText('team')).toBeInTheDocument()
|
|
})
|
|
})
|