aboutsummaryrefslogtreecommitdiff
path: root/test/js
diff options
context:
space:
mode:
Diffstat (limited to 'test/js')
-rw-r--r--test/js/deno/abort/abort-controller.test.ts2
-rw-r--r--test/js/deno/html/blob.test.ts5
-rw-r--r--test/js/deno/resources/imports.json5
-rw-r--r--test/js/deno/resources/tests.json4
-rw-r--r--test/js/deno/scripts/postinstall.ts11
5 files changed, 8 insertions, 19 deletions
diff --git a/test/js/deno/abort/abort-controller.test.ts b/test/js/deno/abort/abort-controller.test.ts
index ba386d021..3aae2b623 100644
--- a/test/js/deno/abort/abort-controller.test.ts
+++ b/test/js/deno/abort/abort-controller.test.ts
@@ -18,7 +18,7 @@ Deno.test(function signalCallsOnabort() {
const controller = new AbortController();
const { signal } = controller;
let called = false;
- signal.onabort = (evt) => {
+ signal.onabort = evt => {
assert(evt);
assertEquals(evt.type, "abort");
called = true;
diff --git a/test/js/deno/html/blob.test.ts b/test/js/deno/html/blob.test.ts
index 0b50c8452..af1e7f6e8 100644
--- a/test/js/deno/html/blob.test.ts
+++ b/test/js/deno/html/blob.test.ts
@@ -109,9 +109,6 @@ Deno.test(function blobConstructorNameIsBlob() {
Deno.test(function blobCustomInspectFunction() {
const blob = new Blob();
- assertEquals(
- Deno.inspect(blob),
- `Blob { size: 0, type: "" }`,
- );
+ assertEquals(Deno.inspect(blob), `Blob { size: 0, type: "" }`);
assertStringIncludes(Deno.inspect(Blob.prototype), "Blob");
});
diff --git a/test/js/deno/resources/imports.json b/test/js/deno/resources/imports.json
index 0c75b5739..6b044a9a5 100644
--- a/test/js/deno/resources/imports.json
+++ b/test/js/deno/resources/imports.json
@@ -1,4 +1 @@
-[
- "test_util.ts",
- "test_util/std/bytes/concat.ts"
-]
+["test_util.ts", "test_util/std/bytes/concat.ts"]
diff --git a/test/js/deno/resources/tests.json b/test/js/deno/resources/tests.json
index 1d7e0f52a..067cb7205 100644
--- a/test/js/deno/resources/tests.json
+++ b/test/js/deno/resources/tests.json
@@ -5,6 +5,6 @@
},
{
"path": "html/blob.test.ts",
- "remotePath": "unit/blob_test.ts"
+ "remotePath": "unit/blob_test.ts"
}
-] \ No newline at end of file
+]
diff --git a/test/js/deno/scripts/postinstall.ts b/test/js/deno/scripts/postinstall.ts
index 4031b29df..bca1e6582 100644
--- a/test/js/deno/scripts/postinstall.ts
+++ b/test/js/deno/scripts/postinstall.ts
@@ -5,21 +5,16 @@ import tests from "../resources/tests.json";
for (const test of tests) {
const path = join(import.meta.dir, "..", test.path);
- const url = new URL(
- test.remotePath,
- "https://raw.githubusercontent.com/denoland/deno/main/cli/tests/"
- );
+ const url = new URL(test.remotePath, "https://raw.githubusercontent.com/denoland/deno/main/cli/tests/");
const response = await fetch(url);
console.log(response.status, url.toString(), "->", test.path);
if (!response.ok) {
- throw new Error(
- `Failed to download from GitHub: ${url} [status: ${response.status}]`
- );
+ throw new Error(`Failed to download from GitHub: ${url} [status: ${response.status}]`);
}
let body = await response.text();
for (const query of imports) {
const pattern = new RegExp(`"(.*${query})"`, "gmi");
- body = body.replace(pattern, "\"deno:harness\"");
+ body = body.replace(pattern, '"deno:harness"');
}
const src = `// Updated: ${response.headers.get("Date")}
// URL: ${url}