Skip to content

Commit 7eedfc6

Browse files
committed
fix(deposit): add await waitfor
1 parent 8aef36f commit 7eedfc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/UI/Ramp/Deposit/Views/OtpCode/OtpCode.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ describe('OtpCode Screen', () => {
181181
const codeInput = getByTestId('otp-code-input');
182182
fireEvent.changeText(codeInput, '123456');
183183
});
184-
waitFor(() => {
184+
await waitFor(() => {
185185
expect(mockVerifyUserOtp).toHaveBeenCalled();
186186
expect(mockSetAuthToken).toHaveBeenCalledWith(mockResponse);
187187
expect(mockRouteAfterAuthentication).toHaveBeenCalledWith(mockQuote);

0 commit comments

Comments
 (0)