mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +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');
|
||
|
});
|
||
|
});
|