fix tests

This commit is contained in:
Dmitry Vasilev
2024-02-15 17:03:26 +08:00
parent 0d902418ee
commit fb07f81ff6
7 changed files with 26 additions and 10 deletions

View File

@@ -1,3 +1,13 @@
/*
For node.js tests
It forces node.js to load Response (which is loaded lazily)
Without this, `Response` loading code would be executed in record_io.js and
break test by calling `now()`
*/
globalThis.Response
export const run = tests => {
// Runs test, return failure or null if not failed
const run_test = t => {