From f16652a39532be0b4fed50c787ca16dea954ddcb Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Wed, 15 May 2019 18:25:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E8=A6=81=E7=AD=89=E5=BE=85=E4=B8=80?= =?UTF-8?q?=E4=B8=8B=20ui=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __tests__/renderers/Form/index.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/__tests__/renderers/Form/index.test.tsx b/__tests__/renderers/Form/index.test.tsx index 142602575..1f6548d2c 100644 --- a/__tests__/renderers/Form/index.test.tsx +++ b/__tests__/renderers/Form/index.test.tsx @@ -272,6 +272,7 @@ test('Renderer:Form initApi', async () => { // fetch 调用了,所有 initApi 接口调用了 expect(fetcher).toHaveBeenCalled(); await p0; + await wait(10); // 通过 snapshot 可断定 initApi 返回值已经作用到了表单项上。 expect(container).toMatchSnapshot();