mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-30 12:28:33 +08:00
15 lines
402 B
TypeScript
15 lines
402 B
TypeScript
|
import React from 'react';
|
||
|
|
||
|
import { render } from '../../../tests/utils';
|
||
|
import ContextIsolator from '../ContextIsolator';
|
||
|
|
||
|
describe('ContextIsolator component', () => {
|
||
|
it('ContextIsolator should work when Children is null', () => {
|
||
|
[undefined, null].forEach((item) => {
|
||
|
expect(() => {
|
||
|
render(<ContextIsolator>{item}</ContextIsolator>);
|
||
|
}).not.toThrow();
|
||
|
});
|
||
|
});
|
||
|
});
|