Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Mar 4, 2020
1 parent 6c9c28a commit 3568390
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/unix-socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
}

0 comments on commit 3568390

Please sign in to comment.