mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: allow server to bind to Unix Domain Sockets
This commit is contained in:
committed by
Joachim Van Herwegen
parent
0eb50891ec
commit
bf0e35be37
@@ -16,6 +16,11 @@ describe('A BaseUrlExtractor', (): void => {
|
||||
await expect(computer.handle({ port: 3333 })).resolves.toBe('http://localhost:3333/');
|
||||
});
|
||||
|
||||
it('throws when a Unix Socket Path is provided without a baseUrl.', async(): Promise<void> => {
|
||||
await expect(computer.handle({ socket: '/tmp/css.sock' })).rejects
|
||||
.toThrow('BaseUrl argument should be provided when using Unix Domain Sockets.');
|
||||
});
|
||||
|
||||
it('defaults to port 3000.', async(): Promise<void> => {
|
||||
await expect(computer.handle({})).resolves.toBe('http://localhost:3000/');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user