mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-12 07:53:32 -07:00
global: snapshot
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# Types
|
||||
|
||||
To check types run:
|
||||
|
||||
```sh
|
||||
npx --package typescript tsc --noEmit --pretty false | grep -v "modules/"
|
||||
```
|
||||
+458
-745
File diff suppressed because it is too large
Load Diff
@@ -65,16 +65,9 @@ async function testAllEndpoints() {
|
||||
}
|
||||
try {
|
||||
const endpoint = metric.by[idxName];
|
||||
const res = await endpoint.last(1);
|
||||
const count = res.data.length;
|
||||
if (count !== 1) {
|
||||
console.log(
|
||||
`FAIL: ${fullPath} -> expected 1, got ${count}`,
|
||||
);
|
||||
return;
|
||||
}
|
||||
await endpoint.last(0);
|
||||
success++;
|
||||
console.log(`OK: ${fullPath} -> ${count} items`);
|
||||
console.log(`OK: ${fullPath}`);
|
||||
} catch (e) {
|
||||
console.log(
|
||||
`FAIL: ${fullPath} -> ${e instanceof Error ? e.message : e}`,
|
||||
|
||||
Reference in New Issue
Block a user