mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
666f38d756
* refactor: add ContextIsolator component * fix: fix * fix: fix * test: fix test case * test: add test case --------- Co-authored-by: afc163 <afc163@gmail.com>
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();
|
|
});
|
|
});
|
|
});
|