summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/testdata/run/wasm_streaming_panic_test.js.out2
-rw-r--r--tests/unit/cache_api_test.ts2
-rw-r--r--tests/unit/fetch_test.ts4
-rw-r--r--tests/unit/headers_test.ts4
-rw-r--r--tests/unit/wasm_test.ts2
5 files changed, 7 insertions, 7 deletions
diff --git a/tests/testdata/run/wasm_streaming_panic_test.js.out b/tests/testdata/run/wasm_streaming_panic_test.js.out
index 8a3c68e37..4ec523f1d 100644
--- a/tests/testdata/run/wasm_streaming_panic_test.js.out
+++ b/tests/testdata/run/wasm_streaming_panic_test.js.out
@@ -1,2 +1,2 @@
-error: Uncaught (in promise) TypeError: Invalid WebAssembly content type.
+error: Uncaught (in promise) TypeError: Invalid WebAssembly content type
at handleWasmStreaming (ext:deno_fetch/26_fetch.js:[WILDCARD])
diff --git a/tests/unit/cache_api_test.ts b/tests/unit/cache_api_test.ts
index 792929870..08f768e33 100644
--- a/tests/unit/cache_api_test.ts
+++ b/tests/unit/cache_api_test.ts
@@ -118,7 +118,7 @@ Deno.test(async function cachePutReaderLock() {
await response.arrayBuffer();
},
TypeError,
- "Body already consumed.",
+ "Body already consumed",
);
await promise;
diff --git a/tests/unit/fetch_test.ts b/tests/unit/fetch_test.ts
index 721b6912d..35d5e563f 100644
--- a/tests/unit/fetch_test.ts
+++ b/tests/unit/fetch_test.ts
@@ -1131,7 +1131,7 @@ Deno.test(function fetchResponseConstructorInvalidStatus() {
assert(e instanceof RangeError);
assert(
e.message.endsWith(
- "is not equal to 101 and outside the range [200, 599].",
+ "is not equal to 101 and outside the range [200, 599]",
),
);
}
@@ -1662,7 +1662,7 @@ Deno.test(
);
},
TypeError,
- "Fetching files only supports the GET method. Received POST.",
+ "Fetching files only supports the GET method: received POST",
);
},
);
diff --git a/tests/unit/headers_test.ts b/tests/unit/headers_test.ts
index ad453b67f..ea72f784b 100644
--- a/tests/unit/headers_test.ts
+++ b/tests/unit/headers_test.ts
@@ -406,11 +406,11 @@ Deno.test(function invalidHeadersFlaky() {
assertThrows(
() => new Headers([["x", "\u0000x"]]),
TypeError,
- "Header value is not valid.",
+ 'Invalid header value: "\u0000x"',
);
assertThrows(
() => new Headers([["x", "\u0000x"]]),
TypeError,
- "Header value is not valid.",
+ 'Invalid header value: "\u0000x"',
);
});
diff --git a/tests/unit/wasm_test.ts b/tests/unit/wasm_test.ts
index fab9c9308..e0db41ed0 100644
--- a/tests/unit/wasm_test.ts
+++ b/tests/unit/wasm_test.ts
@@ -53,7 +53,7 @@ Deno.test(
await assertRejects(
() => wasmPromise,
TypeError,
- "Invalid WebAssembly content type.",
+ "Invalid WebAssembly content type",
);
},
);