From 2caf15cfe3a123e64e9fd4e2e6c56feed8692745 Mon Sep 17 00:00:00 2001 From: Szymon Marczak <36894700+szmarczak@users.noreply.github.com> Date: Sat, 29 Feb 2020 21:12:50 +0100 Subject: [PATCH] test #1036 --- test/unix-socket.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/unix-socket.ts b/test/unix-socket.ts index 79d583e7b..ddb466937 100644 --- a/test/unix-socket.ts +++ b/test/unix-socket.ts @@ -44,4 +44,11 @@ if (process.platform !== 'win32') { const instance = got.extend({prefixUrl: url}); t.is((await instance('')).body, 'ok'); }); + + test('passes search params', withSocketServer, async (t, server) => { + server.on('/?a=1', okHandler); + + const url = format('http://unix:%s:%s', server.socketPath, '/?a=1'); + t.is((await got(url)).body, 'ok'); + }); }