mirror of https://github.com/kremalicious/blog.git
12 lines
289 B
TypeScript
12 lines
289 B
TypeScript
import React from 'react'
|
|
import { render, screen, fireEvent } from '@testing-library/react'
|
|
|
|
import Copy from './Copy'
|
|
|
|
describe('Copy', () => {
|
|
it('renders without crashing', () => {
|
|
render(<Copy text="hello" />)
|
|
fireEvent.click(screen.getByTitle('Copy to clipboard'))
|
|
})
|
|
})
|