Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added output #60

Merged
merged 21 commits into from
Jun 29, 2023
Merged
Prev Previous commit
Next Next commit
Add a small jest mock for addLabels. Not used.
  • Loading branch information
pje committed Jul 1, 2021
commit 7b23357b5f75d21196a04574dcddef12ece8cecf
8 changes: 7 additions & 1 deletion __mocks__/@actions/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ export const context = {
const mockApi = {
rest: {
issues: {
addLabels: jest.fn(),
addLabels: jest.fn(({ owner, repo, issue_number, labels }) =>
Promise.resolve({
data: labels.map((l) => {
name: l;
}),
})
),
removeLabel: jest.fn(),
},
pulls: {
Expand Down