Intelligence, Advanced Charting & Trading Platform
test(chartnova): provide production-equivalent stored KV reader in Worker route fixture
davoodmehraban89 committed
Oct 15, 2026 at 14:46 UTC
05160fcd8f2c0768667881d3a30549b852e12cb1
1 file changed
+1
-1
scripts/patch-chartnova-v26-light-catalog.test.mjs
+1
-1
@@ -29,7 +29,7 @@ function v26(js=jsx){
29
+'const noChange='+JSON.stringify('x'.repeat(41000))+';'
30
+'if(url.pathname==="/api/markets"&&request.method==="GET"){return Response.json({ok:true})}'
31
+'return new Response('+JSON.stringify(html)+',{headers:{"content-type":"text/html; charset=utf-8"}})'
32
- +'},async scheduled(event,env){}}';
32
+ +'},async scheduled(event,env){}}'\n +'\nasync function stored(env,key){return env.MARKET_CACHE.get(key,"json")}';
33
}
34
const snapshot=()=>({
35
ok:true,source:'gheymat.online',fetchedAt:'2026-10-15T10:59:00Z',