Skip to content

Commit 28ca565

Browse files
committed
test: update URL snapshot and test case for escaping backslashes (#1621)
1 parent e027815 commit 28ca565

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: test/runtime/__snapshots__/getUrl.test.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ exports[`escape should escape url 42`] = `""image other.png#hash""`;
8686

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

89-
exports[`escape should escape url 44`] = `"http://url/path\\/"`;
89+
exports[`escape should escape url 44`] = `"https://www.example.com?path=path\\to\\resource"`;

Diff for: test/runtime/getUrl.test.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ describe("escape", () => {
127127
{ hash: "#hash", needQuotes: true },
128128
),
129129
).toMatchSnapshot();
130-
expect(getUrl("http://url/path\\/")).toMatchSnapshot();
130+
expect(
131+
getUrl("https://www.example.com?path=path\\to\\resource"),
132+
).toMatchSnapshot();
131133
});
132134
});

0 commit comments

Comments
 (0)