mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
change: log messages in ExpressHttpServer
This commit is contained in:
committed by
Ruben Taelman
parent
aaa49219dc
commit
6212c15352
@@ -1,5 +1,7 @@
|
||||
import type { Server } from 'http';
|
||||
import request from 'supertest';
|
||||
import { LazyLoggerFactory } from '../../../src/logging/LazyLoggerFactory';
|
||||
import { VoidLoggerFactory } from '../../../src/logging/VoidLoggerFactory';
|
||||
import { ExpressHttpServer } from '../../../src/server/ExpressHttpServer';
|
||||
import { HttpHandler } from '../../../src/server/HttpHandler';
|
||||
import type { HttpRequest } from '../../../src/server/HttpRequest';
|
||||
@@ -31,6 +33,7 @@ describe('ExpressHttpServer', (): void => {
|
||||
beforeAll(async(): Promise<void> => {
|
||||
// Prevent test from writing to stderr
|
||||
mock = jest.spyOn(process.stderr, 'write').mockImplementation((): boolean => true);
|
||||
LazyLoggerFactory.getInstance().setLoggerFactory(new VoidLoggerFactory());
|
||||
});
|
||||
|
||||
beforeEach(async(): Promise<void> => {
|
||||
|
||||
Reference in New Issue
Block a user