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), }; }