diff --git a/packages/backend/src/controllers/connectors/plugins/connectorPlugin.class.ts b/packages/backend/src/controllers/connectors/plugins/connectorPlugin.class.ts index d58fd3d0..1b767776 100644 --- a/packages/backend/src/controllers/connectors/plugins/connectorPlugin.class.ts +++ b/packages/backend/src/controllers/connectors/plugins/connectorPlugin.class.ts @@ -24,7 +24,7 @@ export abstract class ConnectorPlugin { } /** - * Returns the mongoDb objectId, this connector is build on. + * Returns the mongoDB objectId, this connector is build on. * * @readonly * @type {string} diff --git a/packages/backend/tests/connectors/logger.spec.ts b/packages/backend/tests/connectors/logger.spec.ts index f097a7c8..ee9918b1 100644 --- a/packages/backend/tests/connectors/logger.spec.ts +++ b/packages/backend/tests/connectors/logger.spec.ts @@ -10,20 +10,20 @@ describe('connectors/logger.ts info()', () => { const message = "Test"; beforeEach(() => { - spyLogger = jest.spyOn(loggerFile,'info'); + spyLogger = jest.spyOn(loggerFile, 'info'); }); afterEach(() => { jest.clearAllMocks(); }); - it('should save message to logs', () => { + it('should save the message to logs', () => { connectorLogger.info(message, "123"); expect(spyLogger).toHaveBeenCalledWith(message); expect(ConnectorLogItem).toHaveBeenCalled(); }); - it('should skip to save the message to logs', () => { + it('should skip saving the message to logs', () => { connectorLogger.info(message, "123", true); expect(spyLogger).toHaveBeenCalledWith(message); expect(ConnectorLogItem).not.toHaveBeenCalled(); @@ -42,13 +42,13 @@ describe('connectors/logger.ts warn()', () => { jest.clearAllMocks(); }); - it('should save message to logs', () => { + it('should save the message to logs', () => { connectorLogger.warn(message, "123"); expect(spyLogger).toHaveBeenCalledWith(message); expect(ConnectorLogItem).toHaveBeenCalled(); }); - it('should skip to save the message to logs', () => { + it('should skip saving the message to logs', () => { connectorLogger.warn(message, "123", true); expect(spyLogger).toHaveBeenCalledWith(message); expect(ConnectorLogItem).not.toHaveBeenCalled(); @@ -67,13 +67,13 @@ describe('connectors/logger.ts error()', () => { jest.clearAllMocks(); }); - it('should save message to logs', () => { + it('should save the message to logs', () => { connectorLogger.error(message, "123"); expect(spyLogger).toHaveBeenCalledWith(message); expect(ConnectorLogItem).toHaveBeenCalled(); }); - it('should skip to save the message to logs', () => { + it('should skip saving the message to logs', () => { connectorLogger.error(message, "123", true); expect(spyLogger).toHaveBeenCalledWith(message); expect(ConnectorLogItem).not.toHaveBeenCalled();