improve spotv1 E2E test validation on ret msg
This commit is contained in:
@@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user