improve spotv1 E2E test validation on ret msg

This commit is contained in:
tiagosiebler
2022-11-29 09:17:51 +00:00
parent 84b71f5c13
commit 88e7767038

View File

@@ -23,7 +23,7 @@ export function successResponseObject(successMsg: string | null = 'OK') {
return { return {
result: expect.any(Object), result: expect.any(Object),
ret_code: API_ERROR_CODE.SUCCESS, ret_code: API_ERROR_CODE.SUCCESS,
ret_msg: successMsg, ret_msg: expect.stringMatching(SUCCESS_MSG_REGEX),
}; };
} }