ant-design/components/config-provider/__tests__/static.test.js
二货机器人 2e5c848799
fix: message with prefixCls should not break (#29574)
* fix: compitable for legacy usage

* chore: Add modal warning

* fix lint

* test: ConfigProvider.config
2021-03-02 11:53:12 +08:00

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');
});
});