mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
13 lines
344 B
TypeScript
13 lines
344 B
TypeScript
import React from 'react'
|
|
import { render, fireEvent } from '@testing-library/react'
|
|
|
|
import Qr from './Qr'
|
|
|
|
describe('Qr', () => {
|
|
it('renders without crashing', () => {
|
|
const { container } = render(<Qr address="xxx" />)
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
fireEvent.click(container.querySelector('button'))
|
|
})
|
|
})
|