From 97cf3b26b0881557d150a43ef81a25ed38bb023d Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 7 Aug 2022 13:07:25 +0200 Subject: [PATCH] Fixed warning in ImportServersBtnTest --- test/servers/helpers/ImportServersBtn.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/test/servers/helpers/ImportServersBtn.test.tsx b/test/servers/helpers/ImportServersBtn.test.tsx index 605270fa..f60d21ad 100644 --- a/test/servers/helpers/ImportServersBtn.test.tsx +++ b/test/servers/helpers/ImportServersBtn.test.tsx @@ -59,6 +59,7 @@ describe('', () => { input && fireEvent.change(input, { target: { files: [''] } }); expect(importServersFromFile).toHaveBeenCalledTimes(1); + await waitFor(() => expect(createServersMock).toHaveBeenCalledTimes(1)); }); it.each([