Tldraw/packages/tldraw/src/components/ContextMenu/ContextMenu.test.tsx

16 wiersze
393 B
TypeScript
Czysty Zwykły widok Historia

2021-08-14 15:46:21 +00:00
import * as React from 'react'
import { ContextMenu } from './ContextMenu'
import { renderWithContext, renderWithIntlProvider } from '~test'
2021-08-14 15:46:21 +00:00
describe('context menu', () => {
2021-08-16 07:49:31 +00:00
test('mounts component without crashing', () => {
2021-08-14 15:46:21 +00:00
renderWithContext(
renderWithIntlProvider(
<ContextMenu onBlur={jest.fn()}>
<div>Hello</div>
</ContextMenu>
)
2021-08-14 15:46:21 +00:00
)
})
})