feat(#3): implement initial public API tests
This commit is contained in:
22
test/response.util.ts
Normal file
22
test/response.util.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
export function successResponseList() {
|
||||
return {
|
||||
"ext_code": "",
|
||||
"ext_info": "",
|
||||
"result": expect.any(Array),
|
||||
"ret_code": 0,
|
||||
"ret_msg": "OK",
|
||||
"time_now": expect.any(String),
|
||||
};
|
||||
};
|
||||
|
||||
export function successResponseObject() {
|
||||
return {
|
||||
"ext_code": "",
|
||||
"ext_info": "",
|
||||
"result": expect.any(Object),
|
||||
"ret_code": 0,
|
||||
"ret_msg": "OK",
|
||||
"time_now": expect.any(String),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user