mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-14 08:51:26 +08:00
2e5c848799
* fix: compitable for legacy usage * chore: Add modal warning * fix lint * test: ConfigProvider.config
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');
|
|
});
|
|
});
|