Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbystedt committed Dec 24, 2024
1 parent 8c12946 commit 0d57983
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/access-logs.middleware.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
6 changes: 3 additions & 3 deletions src/util/action.util.spec.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 0d57983

Please sign in to comment.