Skip to content

Commit

Permalink
chore: strip content length if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Oct 6, 2024
1 parent 2685316 commit c8f5d0b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/truncate-data.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ describe("Payload truncate tests", () => {
),
run: jest.fn(),
}));
jest.mock("../src/issue-activity", () => ({
init: jest.fn(),
}));
jest.mock("../src/issue-activity", () => {
return jest.fn().mockImplementation(() => {
return { init: jest.fn() };
});
});
const module = (await import("../src/index")) as unknown as { default: Promise<string> };
const result = await module.default;
expect(result).toEqual("All linked pull requests must be closed to generate rewards.");
Expand Down

0 comments on commit c8f5d0b

Please sign in to comment.