From 88e776703806b6c93e7ae4b8a3ad95841dde00ac Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Tue, 29 Nov 2022 09:17:51 +0000 Subject: [PATCH] improve spotv1 E2E test validation on ret msg --- test/response.util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/response.util.ts b/test/response.util.ts index 8ff4623..48823d7 100644 --- a/test/response.util.ts +++ b/test/response.util.ts @@ -23,7 +23,7 @@ export function successResponseObject(successMsg: string | null = 'OK') { return { result: expect.any(Object), ret_code: API_ERROR_CODE.SUCCESS, - ret_msg: successMsg, + ret_msg: expect.stringMatching(SUCCESS_MSG_REGEX), }; }