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