feat(#3): implement initial public API tests

This commit is contained in:
tiagosiebler
2021-06-24 00:26:52 +01:00
parent b4614a71bb
commit f8fcb83628
7 changed files with 3923 additions and 5 deletions

22
test/response.util.ts Normal file
View 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),
};
};