2021-08-14 15:46:21 +00:00
|
|
|
import * as React from 'react'
|
2021-11-03 16:46:33 +00:00
|
|
|
import { ContextMenu } from './ContextMenu'
|
2022-06-09 14:33:35 +00:00
|
|
|
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(
|
2022-06-09 14:33:35 +00:00
|
|
|
renderWithIntlProvider(
|
|
|
|
<ContextMenu onBlur={jest.fn()}>
|
|
|
|
<div>Hello</div>
|
|
|
|
</ContextMenu>
|
|
|
|
)
|
2021-08-14 15:46:21 +00:00
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|