Skip to content

Commit

Permalink
fixed missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Sep 5, 2023
1 parent da6c97e commit 4e18286
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ describe("Integration testing", () => {
expect(result.reports).toHaveLength(1);
expect(result.conclusion).toBe("failure");
const report = getReport(result.reports, "Core developers");
console.log(report);
expect(report.missingReviews).toBe(1);
});

Expand Down Expand Up @@ -223,7 +222,6 @@ describe("Integration testing", () => {
expect(result.reports).toHaveLength(1);
expect(result.conclusion).toBe("failure");
const report = getReport(result.reports, "Runtime files cumulus");
console.log(report);
expect(report.missingReviews).toBe(2);
});

Expand All @@ -235,21 +233,19 @@ describe("Integration testing", () => {
});
mockReviews([{ state: "approved", id: 123, login: "gavofyork" }]);
const newResult = await runner.runAction({ configLocation: "abc" });
console.log("nre result", JSON.stringify(newResult, null, 2));
expect(newResult.reports.map((r) => r.missingReviews).reduce((a, b) => a + b, 0)).toBe(3);
});

test("should use same reviewers for separate rules", async () => {
client.rest.pulls.listFiles.mockResolvedValue({
// @ts-ignore
data: [{ filename: "" }, { filename: "README.md" }],
data: [{ filename: "cumulus/parachains/common/src/example.rs" }, { filename: "README.md" }],
});
mockReviews([
{ state: "approved", id: 123, login: "gavofyork" },
{ state: "approved", id: 124, login: "bkchr" },
]);
const result = await runner.runAction({ configLocation: "abc" });
console.log("nre result", JSON.stringify(result, null, 2));
expect(result.conclusion).toEqual("success");
});
});
Expand Down

0 comments on commit 4e18286

Please sign in to comment.