mirror of
https://github.com/kremalicious/blog.git
synced 2024-06-28 16:48:00 +02:00
11 lines
330 B
TypeScript
11 lines
330 B
TypeScript
import { describe, test, expect } from 'vitest'
|
|
import { render, screen } from '@testing-library/react'
|
|
import { Success } from './Success'
|
|
|
|
describe('Success component', () => {
|
|
test('renders without crashing', () => {
|
|
render(<Success />)
|
|
expect(screen.getByText(`You're amazing, thanks!`)).toBeInTheDocument()
|
|
})
|
|
})
|