Skip to content

Commit f408785

Browse files
committed
tests: better logging
1 parent 49d9a36 commit f408785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function req(methodUrl: string, test:Tester, requestOptions?:any) {
5858
})
5959

6060
function fun(res:any) {
61-
console.debug('sent', requestOptions, 'got', res instanceof Error ? String(res) : res)
61+
console.debug('sent', requestOptions, 'got', res instanceof Error ? String(res) : [res.status, res.data])
6262
if (typeof test === 'number') {
6363
const got = res.status || res.response.status
6464
const ok = got === test

0 commit comments

Comments
 (0)