bootstrap public spot test
This commit is contained in:
@@ -1,26 +1,19 @@
|
||||
|
||||
export function successResponseList() {
|
||||
export function successResponseList(successMsg: string | null = 'OK') {
|
||||
return {
|
||||
"ext_code": "",
|
||||
"ext_info": "",
|
||||
"result": expect.any(Array),
|
||||
"ret_code": 0,
|
||||
"ret_msg": "OK",
|
||||
"time_now": expect.any(String),
|
||||
result: expect.any(Array),
|
||||
ret_code: 0,
|
||||
ret_msg: successMsg,
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
export function successResponseObject() {
|
||||
export function successResponseObject(successMsg: string | null = 'OK') {
|
||||
return {
|
||||
"ext_code": "",
|
||||
"ext_info": "",
|
||||
"result": expect.any(Object),
|
||||
"ret_code": 0,
|
||||
"ret_msg": "OK",
|
||||
"time_now": expect.any(String),
|
||||
result: expect.any(Object),
|
||||
ret_code: 0,
|
||||
ret_msg: successMsg,
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
export function notAuthenticatedError() {
|
||||
return new Error('Private endpoints require api and private keys set');
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user