diff options
author | Ian Bull <irbull@gmail.com> | 2024-09-04 00:05:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 09:05:29 +0200 |
commit | ce6b6751028bfe08b49628a30e660ff479eded02 (patch) | |
tree | b0262dcbfa8e40aca090486eab959f04ae725ffc /tests/unit/headers_test.ts | |
parent | 7079acd74d583a14f3c09e16f196a6851381439b (diff) |
refactor(ext/fetch): align error messages (#25374)
Aligns the error messages in the ext/fetch folder to be in-line with the
Deno style guide.
https://github.com/denoland/deno/issues/25269
Diffstat (limited to 'tests/unit/headers_test.ts')
-rw-r--r-- | tests/unit/headers_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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"', ); }); |