Skip to content

Commit

Permalink
test: add snapshot and test case for URL escaping with backslashes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchira-net committed Nov 26, 2024
1 parent 65245c9 commit e027815
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/runtime/__snapshots__/getUrl.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,5 @@ exports[`escape should escape url 41`] = `""image other.png#hash""`;
exports[`escape should escape url 42`] = `""image other.png#hash""`;

exports[`escape should escape url 43`] = `""image other.png#hash""`;

exports[`escape should escape url 44`] = `"http://url/path\\/"`;
1 change: 1 addition & 0 deletions test/runtime/getUrl.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,6 @@ describe("escape", () => {
{ hash: "#hash", needQuotes: true },
),
).toMatchSnapshot();
expect(getUrl("http://url/path\\/")).toMatchSnapshot();
});
});

0 comments on commit e027815

Please sign in to comment.