Skip to content

Commit 7d6729d

Browse files
committed
test(preconditions): fix test case
1 parent 8f6deb1 commit 7d6729d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

preconditions/if_match_test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ describe("IfMatch", () => {
3030
new Response(null, { headers: { [RepresentationHeader.ETag]: "" } }),
3131
],
3232
[
33-
new Request("test:"),
33+
new Request("test:", {
34+
headers: { [ConditionalHeader.IfMatch]: "" },
35+
}),
3436
new Response(null, {
3537
headers: {
36-
[ConditionalHeader.IfMatch]: "",
3738
[RepresentationHeader.ETag]: "",
3839
},
3940
}),

preconditions/if_modified_since_test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ describe("IfModifiedSince", () => {
7878
}),
7979
],
8080
[
81-
new Request("test:"),
81+
new Request("test:", {
82+
headers: { [ConditionalHeader.IfModifiedSince]: "" },
83+
}),
8284
new Response(null, {
8385
headers: {
84-
[ConditionalHeader.IfModifiedSince]: "",
8586
[RepresentationHeader.LastModified]: "",
8687
},
8788
}),

preconditions/if_none_match_test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ describe("IfNoneMatch", () => {
3131
new Response(null, { headers: { [RepresentationHeader.ETag]: "" } }),
3232
],
3333
[
34-
new Request("test:"),
34+
new Request("test:", {
35+
headers: { [ConditionalHeader.IfNoneMatch]: "" },
36+
}),
3537
new Response(null, {
3638
headers: {
37-
[ConditionalHeader.IfNoneMatch]: "",
3839
[RepresentationHeader.ETag]: "",
3940
},
4041
}),

0 commit comments

Comments
 (0)