16 lines
426 B
TypeScript
16 lines
426 B
TypeScript
import React from 'react'
|
|
import {Menu} from '../../../../src/view/shell/mobile/Menu'
|
|
import renderer from 'react-test-renderer'
|
|
// import {render} from '../../../../jest/test-utils'
|
|
|
|
describe('Menu', () => {
|
|
const mockedProps = {
|
|
visible: true,
|
|
onClose: jest.fn(),
|
|
}
|
|
it('renders correctly', () => {
|
|
const tree = renderer.create(<Menu {...mockedProps} />).toJSON()
|
|
expect(tree).toMatchSnapshot()
|
|
})
|
|
})
|