chore: fix test script

This commit is contained in:
二货机器人 2022-07-29 17:30:06 +08:00
parent 74ae7f68f0
commit a92044afba

View File

@ -76,7 +76,7 @@ function baseText(doInject: boolean, component: string, options: Options = {}) {
// Inject cssinjs cache to avoid create <style /> element
Demo = <StyleProvider cache={createCache()}>{Demo}</StyleProvider>;
render(Demo);
enzymeRender(Demo);
expect(errSpy).not.toHaveBeenCalledWith(expect.stringContaining('[Ant Design CSS-in-JS]'));
MockDate.reset();