CommunitySolidServer/test/unit/logging/VoidLogger.test.ts
Joachim Van Herwegen 6248ed0938 refactor: Replace linting configurations
The previous package was outdated, preventing us from updating TS.
This one also lints YAML and JSON,
and applies many more rules to the test files,
explaining all the changes in this PR.
2023-11-02 09:49:17 +01:00

13 lines
324 B
TypeScript

import { VoidLogger } from '../../../src/logging/VoidLogger';
describe('VoidLogger', (): void => {
let logger: VoidLogger;
beforeEach(async(): Promise<void> => {
logger = new VoidLogger();
});
it('does nothing when log is invoked.', async(): Promise<void> => {
expect(logger.log()).toBe(logger);
});
});