mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 23:18:36 +08:00
db0344c85f
* test: migrate part of ConfigProvider tests * test: migrate part of ConfigProvider tests * test: update snap * test: update snap * test: migrate part of ConfigProvider tests * fix: commented error case * chore: update snapshot name * test: csp test case * test: revert test case * test: Update snapshot * test: Update ser logic * test: more cov * test: cascader snapshit * test: update match * test: more detact * test: more handler * chore: Update snapshot * test: Table test case Co-authored-by: 二货机器人 <smith3816@gmail.com>
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');
|
|
});
|
|
});
|