Skip to content

Commit

Permalink
chore: updated output test
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Jul 16, 2024
1 parent 234850d commit 590841a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/action.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ describe("Action tests", () => {
! Failed to run comment evaluation. Some error
\`\`\`
<!--
https://ubiquibot/conversation-rewards/actions/runs/1
https://github.com/ubiquibot/conversation-rewards/actions/runs/1
{
"message": "Some error",
"caller": "error"
"caller": "call"
}
-->`);
});
Expand Down
4 changes: 3 additions & 1 deletion tests/process.issue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ describe("Modules tests", () => {
await processor.run(activity);
const result = JSON.parse(processor.dump());
expect(result).toEqual(githubCommentResults);
expect(fs.readFileSync("./output.html")).toEqual(fs.readFileSync("./tests/__mocks__/results/output.html"));
expect(fs.readFileSync("./output.html", "utf-8")).toEqual(
fs.readFileSync("./tests/__mocks__/results/output.html", "utf-8")
);
});

it("Should properly generate the configuration", () => {
Expand Down
2 changes: 0 additions & 2 deletions tests/rewards.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ describe("Rewards tests", () => {
await processor.run(activity);
const result = JSON.parse(processor.dump());
expect(result).toEqual(rewardSplitResult);
console.log("+++++++");
console.log(fs.readFileSync("./output.html", "utf-8"));
expect(fs.readFileSync("./output.html", "utf-8")).toEqual(
fs.readFileSync("./tests/__mocks__/results/output-reward-split.html", "utf-8")
);
Expand Down

0 comments on commit 590841a

Please sign in to comment.