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'
|
2021-08-14 16:17:29 +00:00
|
|
|
import { renderWithContext } 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(
|
2021-11-11 09:54:58 +00:00
|
|
|
<ContextMenu onBlur={jest.fn()}>
|
2021-08-14 15:46:21 +00:00
|
|
|
<div>Hello</div>
|
|
|
|
</ContextMenu>
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|