deno.land / x / zipjs@v2.7.43 / tests / bun-runner.test.js

bun-runner.test.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* global globalThis, Bun */
import { test, beforeEach } from "bun:test";
import tests from "./tests-data.js";
beforeEach(() => globalThis.fetch = async (url) => { const file = await Bun.file("." + url.toString().match(/(\/data\/.*)/)[1]); return { status: 200, body: file.stream(), arrayBuffer: () => file.arrayBuffer() };});
for (const testData of tests) { if (!testData.env || testData.env.includes("bun")) { test(testData.title, async () => (await import("./all/" + testData.script)).test()); }}
zipjs

Version Info

Tagged at
3 weeks ago