diff --git a/tests/shared/demoTest.tsx b/tests/shared/demoTest.tsx
index 39a1cecb13..5962592135 100644
--- a/tests/shared/demoTest.tsx
+++ b/tests/shared/demoTest.tsx
@@ -76,7 +76,7 @@ function baseText(doInject: boolean, component: string, options: Options = {}) {
// Inject cssinjs cache to avoid create element
Demo = {Demo};
- render(Demo);
+ enzymeRender(Demo);
expect(errSpy).not.toHaveBeenCalledWith(expect.stringContaining('[Ant Design CSS-in-JS]'));
MockDate.reset();