refactor(core): Make Logger a service (no-changelog) (#7494)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-10-25 16:35:22 +02:00
committed by GitHub
parent db4e61ba24
commit 05586a900d
131 changed files with 761 additions and 919 deletions

View File

@@ -2,7 +2,6 @@ import axios from 'axios';
import { ObjectStoreService } from '@/ObjectStore/ObjectStore.service.ee';
import { Readable } from 'stream';
import { writeBlockedMessage } from '@/ObjectStore/utils';
import { initLogger } from './helpers/utils';
jest.mock('axios');
@@ -23,7 +22,6 @@ const toDeletionXml = (filename: string) => `<Delete>
</Delete>`;
let objectStoreService: ObjectStoreService;
initLogger();
beforeEach(async () => {
objectStoreService = new ObjectStoreService();
@@ -117,7 +115,6 @@ describe('put()', () => {
});
it('should block if read-only', async () => {
initLogger();
objectStoreService.setReadonly(true);
const metadata = { fileName: 'file.txt', mimeType: 'text/plain' };