mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-12 11:55:23 +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');
|
||
|
});
|
||
|
});
|