mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
13 lines
323 B
JavaScript
13 lines
323 B
JavaScript
|
import ConfigProvider, { globalConfig } from '..';
|
||
|
|
||
|
describe('ConfigProvider.config', () => {
|
||
|
it('rootPrefixCls', () => {
|
||
|
expect(globalConfig().getRootPrefixCls()).toEqual('ant');
|
||
|
|
||
|
ConfigProvider.config({
|
||
|
prefixCls: 'light',
|
||
|
});
|
||
|
expect(globalConfig().getRootPrefixCls()).toEqual('light');
|
||
|
});
|
||
|
});
|