Skip to content

Commit b955a43

Browse files
author
Stefan Wachter
committed
Fix "params / path / allows UTF-8 characters" test
1 parent 808b9b0 commit b955a43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/openapi-fetch/test/index.test.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ describe("client", () => {
220220

221221
// expect post_id to be encoded properly
222222
const url = getRequestUrl();
223-
expect(url.searchParams.get("id ")).toBe(" 🥴");
224-
expect(url.pathname + url.search).toBe("/blogposts/post?id%20=%20%F0%9F%A5%B4");
223+
expect(url.pathname).toBe("/blogposts/post%3Fid%20%3D%20%F0%9F%A5%B4");
225224
});
226225
});
227226

0 commit comments

Comments
 (0)