Skip to content

Commit

Permalink
feat(cb2-10665): revert use of test jwt json in logger unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mullen committed Mar 15, 2024
1 parent 96b34ee commit 9351f62
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/unit/common/Logger.unitTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import { ILogEvent } from "../../../src/models/ILogEvent";
import errorLogEvent from "../../resources/errorLogEvent.json";
import { writeLogMessage } from "../../../src/common/Logger";
import successLogEvent from "../../resources/successLogEvent.json";
import jwtJson from "../../resources/jwt.json";
import Role from "../../../src/services/roles";

describe("test writeLogMessage method", () => {
const logError: ILogError = {};
const logErrorEvent: ILogEvent = errorLogEvent;
const jwtJsonClone = JSON.parse(JSON.stringify(jwtJson));
logErrorEvent.roles = jwtJsonClone.payload.roles;
logErrorEvent.roles = [{name: "test", access: "read"}] as Role[];

context("when only the log event is passed in", () => {
it("should return no errors", () => {
Expand Down

0 comments on commit 9351f62

Please sign in to comment.