Skip to content

Commit

Permalink
fix: refactor failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ishowvel committed Dec 20, 2024
1 parent cb06d40 commit f2e522b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/permit-generatable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ const { ContentEvaluatorModule } = await import("../src/parser/content-evaluator
const { DataPurgeModule } = await import("../src/parser/data-purge-module");
const { FormattingEvaluatorModule } = await import("../src/parser/formatting-evaluator-module");
const { PermitGenerationModule } = await import("../src/parser/permit-generation-module");
const { ReviewIncentivizerModule } = await import("../src/parser/review-incentivizer-module");
const { Processor } = await import("../src/parser/processor");
const { UserExtractorModule } = await import("../src/parser/user-extractor-module");

Expand Down Expand Up @@ -210,6 +211,14 @@ describe("Permit Generation Module Tests", () => {
})()
);
});
jest.spyOn(ReviewIncentivizerModule.prototype, "getTripleDotDiffAsObject").mockImplementation(async () => {
return {
"test.txt": {
addition: 50,
deletion: 50,
},
};
});
});

describe("Admin User Tests", () => {
Expand All @@ -226,6 +235,7 @@ describe("Permit Generation Module Tests", () => {
new DataPurgeModule(ctx),
new FormattingEvaluatorModule(ctx),
new ContentEvaluatorModule(ctx),
new ReviewIncentivizerModule(ctx),
new PermitGenerationModule(ctx),
];

Expand All @@ -245,6 +255,7 @@ describe("Permit Generation Module Tests", () => {
new DataPurgeModule(ctx),
new FormattingEvaluatorModule(ctx),
new ContentEvaluatorModule(ctx),
new ReviewIncentivizerModule(ctx),
new PermitGenerationModule(ctx),
];

Expand All @@ -270,6 +281,7 @@ describe("Permit Generation Module Tests", () => {
new DataPurgeModule(ctx),
new FormattingEvaluatorModule(ctx),
new ContentEvaluatorModule(ctx),
new ReviewIncentivizerModule(ctx),
new PermitGenerationModule(ctx),
];

Expand All @@ -289,6 +301,7 @@ describe("Permit Generation Module Tests", () => {
new DataPurgeModule(ctx),
new FormattingEvaluatorModule(ctx),
new ContentEvaluatorModule(ctx),
new ReviewIncentivizerModule(ctx),
new PermitGenerationModule(ctx),
];

Expand Down

0 comments on commit f2e522b

Please sign in to comment.