mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 16:39:41 +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');
|
||
|
});
|
||
|
});
|