mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: configure logger during setup
This commit is contained in:
committed by
Ruben Taelman
parent
09ac83caa5
commit
aaa49219dc
@@ -1,5 +1,6 @@
|
||||
import { Setup } from '../../../src/init/Setup';
|
||||
import type { ResourceIdentifier } from '../../../src/ldp/representation/ResourceIdentifier';
|
||||
import { VoidLoggerFactory } from '../../../src/logging/VoidLoggerFactory';
|
||||
|
||||
describe('Setup', (): void => {
|
||||
let httpServer: any;
|
||||
@@ -16,7 +17,7 @@ describe('Setup', (): void => {
|
||||
httpServer = {
|
||||
listen: jest.fn(),
|
||||
};
|
||||
setup = new Setup(httpServer, store, aclManager, 'http://localhost:3000/', 3000);
|
||||
setup = new Setup(httpServer, store, aclManager, new VoidLoggerFactory(), 'http://localhost:3000/', 3000);
|
||||
});
|
||||
|
||||
it('starts an HTTP server.', async(): Promise<void> => {
|
||||
|
||||
Reference in New Issue
Block a user