1
0
Fork 0
blog/src/components/atoms/Copy.test.tsx

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'))
})
})