tests: better logging

Massimo Melina committed Jan 5, 2022 at 16:12 UTC f408785ab5db8c3bf930c9816d8a074709ba072d
1 file changed +1 -1
tests/test.ts
+1 -1
@@ -58,7 +58,7 @@ function req(methodUrl: string, test:Tester, requestOptions?:any) {
58 })
59
60 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])
62 if (typeof test === 'number') {
63 const got = res.status || res.response.status
64 const ok = got === test