From 77e219289b0733fb852088bbaad5ba4edae36069 Mon Sep 17 00:00:00 2001 From: Paul Cramer Date: Tue, 10 Sep 2024 15:47:24 -0700 Subject: [PATCH] formatting --- src/swap/components/SwapProvider.test.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/swap/components/SwapProvider.test.tsx b/src/swap/components/SwapProvider.test.tsx index 327e454b2b..8152a7a41a 100644 --- a/src/swap/components/SwapProvider.test.tsx +++ b/src/swap/components/SwapProvider.test.tsx @@ -422,15 +422,18 @@ describe('SwapProvider', () => { }, }); }); - await waitFor(() => { - expect(onStatusMock).toHaveBeenCalledWith({ - statusName: 'init', - statusData: { - isMissingRequiredField: false, - maxSlippage: expect.any(Number), - }, - }); - }, { timeout: 3000 }); // Increase timeout if needed + await waitFor( + () => { + expect(onStatusMock).toHaveBeenCalledWith({ + statusName: 'init', + statusData: { + isMissingRequiredField: false, + maxSlippage: expect.any(Number), + }, + }); + }, + { timeout: 3000 }, + ); // Increase timeout if needed }); it('should emit onStatus when setLifeCycleStatus is called with error', async () => {