Skip to content

Commit

Permalink
chore: fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Aug 26, 2024
1 parent 09ada15 commit 0b2bf07
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions tests/action.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,45 @@ afterEach(() => {
});
afterAll(() => server.close());

jest.mock("@octokit/plugin-paginate-graphql", () => ({
paginateGraphQL() {
return {
graphql: {
paginate() {
return {
repository: {
issue: {
closedByPullRequestsReferences: {
edges: [
{
node: {
id: "PR_kwDOK87YcM5nHc9o",
title: "chore: add new shared evmPrivateKeyEncrypted",
number: 25,
url: "https://github.com/ubiquibot/comment-incentives/pull/25",
author: {
login: "gitcoindev",
id: 88761781,
},
repository: {
owner: {
login: "ubiquibot",
},
name: "comment-incentives",
},
},
},
],
},
},
},
};
},
},
};
},
}));

describe("Action tests", () => {
it("Should skip when the issue is closed without the completed status", async () => {
jest.mock("../src/parser/command-line", () => {
Expand Down

0 comments on commit 0b2bf07

Please sign in to comment.