Spaces:
Running
Running
Download run_reference_fixtures.mjs from WideChaos/http-range-desk: direct link, hf CLI and curl.
- Browser
- Download file 374 Bytes
-
https://huggingface.co/spaces/WideChaos/http-range-desk/resolve/main/run_reference_fixtures.mjs
- Command line
-
hf download hf://spaces/WideChaos/http-range-desk/run_reference_fixtures.mjs
-
curl -L -o run_reference_fixtures.mjs https://huggingface.co/spaces/WideChaos/http-range-desk/resolve/main/run_reference_fixtures.mjs
374 Bytes
| import fs from'node:fs';import{makeReport}from'./core.mjs';let cases=JSON.parse(fs.readFileSync('fixtures/cases.json','utf8')),out=fs.openSync('fixture-reports.jsonl','w');for(let c of cases){let p=c.payload?new Uint8Array(fs.readFileSync('fixtures/'+c.payload)):null;fs.writeSync(out,JSON.stringify({id:c.id,report:await makeReport(c.request,p)})+'\n');}fs.closeSync(out); | |