mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 20:00:02 +00:00
refactor(core): Make Logger a service (no-changelog) (#7494)
This commit is contained in:
committed by
GitHub
parent
db4e61ba24
commit
05586a900d
@@ -1,11 +1,8 @@
|
||||
import { Telemetry } from '@/telemetry';
|
||||
import { RoleService } from '@/services/role.service';
|
||||
import { InternalHooks } from '@/InternalHooks';
|
||||
import { NodeTypes } from '@/NodeTypes';
|
||||
import { ExecutionRepository } from '@/databases/repositories';
|
||||
import { EventsService } from '@/services/events.service';
|
||||
import { mockInstance } from '../integration/shared/utils';
|
||||
import type { IDiagnosticInfo } from '@/Interfaces';
|
||||
import { mock } from 'jest-mock-extended';
|
||||
|
||||
jest.mock('@/telemetry');
|
||||
|
||||
@@ -15,13 +12,7 @@ let telemetry: Telemetry;
|
||||
describe('InternalHooks', () => {
|
||||
beforeAll(() => {
|
||||
telemetry = mockInstance(Telemetry);
|
||||
internalHooks = new InternalHooks(
|
||||
telemetry,
|
||||
mockInstance(NodeTypes),
|
||||
mockInstance(RoleService),
|
||||
mockInstance(ExecutionRepository),
|
||||
mockInstance(EventsService),
|
||||
);
|
||||
internalHooks = new InternalHooks(telemetry, mock(), mock(), mock(), mock(), mock());
|
||||
});
|
||||
|
||||
it('Should be defined', () => {
|
||||
@@ -49,6 +40,7 @@ describe('InternalHooks', () => {
|
||||
saml_enabled: true,
|
||||
licensePlanName,
|
||||
licenseTenantId,
|
||||
binary_data_s3: false,
|
||||
};
|
||||
|
||||
const parameters = {
|
||||
|
||||
Reference in New Issue
Block a user