diff --git a/test/runtime/__snapshots__/getUrl.test.js.snap b/test/runtime/__snapshots__/getUrl.test.js.snap index 68a3c6dd..f25225d7 100644 --- a/test/runtime/__snapshots__/getUrl.test.js.snap +++ b/test/runtime/__snapshots__/getUrl.test.js.snap @@ -86,4 +86,4 @@ 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\\/"`; +exports[`escape should escape url 44`] = `"https://www.example.com?path=path\\to\\resource"`; diff --git a/test/runtime/getUrl.test.js b/test/runtime/getUrl.test.js index ceb5b58e..9d68e475 100644 --- a/test/runtime/getUrl.test.js +++ b/test/runtime/getUrl.test.js @@ -127,6 +127,8 @@ describe("escape", () => { { hash: "#hash", needQuotes: true }, ), ).toMatchSnapshot(); - expect(getUrl("http://url/path\\/")).toMatchSnapshot(); + expect( + getUrl("https://www.example.com?path=path\\to\\resource"), + ).toMatchSnapshot(); }); });