Skip to content

Commit fc6b657

Browse files
committed
Add test for adapter-node
1 parent 647ebff commit fc6b657

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/adapter-node/tests/smoke.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,18 @@ test('responses with the rendered status code', async () => {
4646
server.server.close();
4747
});
4848

49+
test('passes through umlaut as encoded path', async () => {
50+
const server = await startServer({
51+
render: (incoming) => {
52+
return {
53+
status: 200,
54+
body: incoming.path
55+
};
56+
}
57+
});
58+
const res = await fetch(`http://localhost:${PORT}/%C3%BCber-uns`);
59+
assert.equal(await res.text(), '/%C3%BCber-uns');
60+
server.server.close();
61+
});
62+
4963
test.run();

0 commit comments

Comments
 (0)