From 0d579833a4340c1a9bfbaabfe0215342e8a980f9 Mon Sep 17 00:00:00 2001 From: Matthew Bystedt Date: Mon, 23 Dec 2024 17:47:59 -0800 Subject: [PATCH] fix: tests --- src/access-logs.middleware.spec.ts | 4 +++- src/util/action.util.spec.ts | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/access-logs.middleware.spec.ts b/src/access-logs.middleware.spec.ts index 6b8eac41..5ab17a44 100644 --- a/src/access-logs.middleware.spec.ts +++ b/src/access-logs.middleware.spec.ts @@ -3,7 +3,9 @@ import { AuditService } from './audit/audit.service'; describe('AccessLogsMiddleware', () => { it('should be defined', () => { - expect(new AccessLogsMiddleware(new AuditService(undefined))).toBeDefined(); + expect( + new AccessLogsMiddleware(new AuditService(undefined, undefined)), + ).toBeDefined(); }); it('should call recordHttpAccess upon use', () => { diff --git a/src/util/action.util.spec.ts b/src/util/action.util.spec.ts index 2f17089e..5d8b83e4 100644 --- a/src/util/action.util.spec.ts +++ b/src/util/action.util.spec.ts @@ -1,9 +1,9 @@ +import { ActionUtil } from './action.util'; +import { ActionEmbeddable } from '../intention/entity/action.embeddable'; import { ACTION_PROVISION_APPROLE_SECRET_ID, ACTION_PROVISION_TOKEN_SELF, -} from '../constants'; -import { ActionUtil } from './action.util'; -import { ActionEmbeddable } from '../intention/entity/action.embeddable'; +} from '../intention/dto/constants.dto'; describe('ActionUtil', () => { let util: ActionUtil;