Skip to content

Commit

Permalink
fix(if_match): fix to parse list-based fields syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMiyauci committed May 2, 2023
1 parent cb89860 commit 0c0006d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion if_match_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ describe("parse", () => {
tag: "*",
weak: false,
}]],

[`","`, [{ tag: ",", weak: false }]],
];

table.forEach(([input, expected]) => {
Expand All @@ -57,7 +59,6 @@ describe("parse", () => {
"* a",
"*,",
`*, ""`,
`","`,
`* *`,
`**`,
`"", *`,
Expand Down
2 changes: 1 addition & 1 deletion preconditions/utils_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ describe("ifNoneMatch", () => {
[`"a", "b", "c"`, `"d"`],
[`W/"a", "b", "c"`, `"d"`],
[`W/"a", "b", "c"`, `W/"d"`],
[`"abc,def"`, `""`],
];

table.forEach(([filedValue, etag]) => {
Expand All @@ -83,7 +84,6 @@ describe("ifNoneMatch", () => {
["", ""],
[`""`, `"`],
[`"`, `""`],
[`"abc,def"`, `""`],
];

table.forEach(([filedValue, etag]) => {
Expand Down

0 comments on commit 0c0006d

Please sign in to comment.