mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
18 lines
531 B
TypeScript
18 lines
531 B
TypeScript
import * as React from 'react';
|
|
import { render } from '../../../tests/utils';
|
|
import Divider from '..';
|
|
import mountTest from '../../../tests/shared/mountTest';
|
|
|
|
describe('Divider', () => {
|
|
mountTest(Divider);
|
|
|
|
it('not show children when vertical', () => {
|
|
const errSpy = jest.spyOn(console, 'error').mockImplementation(() => {});
|
|
|
|
const { container } = render(<Divider type="vertical">Bamboo</Divider>);
|
|
expect(container.querySelector('.ant-divider-inner-text')).toBeFalsy();
|
|
|
|
errSpy.mockRestore();
|
|
});
|
|
});
|