mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-01 23:29:30 +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');
|
|
});
|
|
});
|