Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bherrmann2 committed Aug 7, 2024
1 parent 00e783e commit 2d259f8
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/374.index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 59 additions & 2 deletions dist/676.index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/676.index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/helpers/is-user-in-team.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('isUserInTeam', () => {
it('should call isUserInTeam with correct params and find user in team for context actor', async () => {
const response = await isUserInTeam({ team: 'users' });
expect(octokit.teams.listMembersInOrg).toHaveBeenCalledWith({
org: context.actor,
org: context.repo.owner,
team_slug: 'users'
});
expect(response).toBe(true);
Expand Down
4 changes: 2 additions & 2 deletions test/helpers/manage-merge-queue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,9 @@ describe('manageMergeQueue', () => {
await manageMergeQueue({ maintainers_team: 'not_team', only_maintainers_can_jump: true });

expect(isUserInTeam).toHaveBeenCalled();
expect(removeLabel).toHaveBeenCalled();
expect(removeLabelIfExists).toHaveBeenCalled();
expect(createPrComment).toHaveBeenCalled();
expect(updateMergeQueue).toHaveBeenCalledWith(queuedPrs);
expect(updateMergeQueue).toHaveBeenCalledTimes(0);
});
});

Expand Down

0 comments on commit 2d259f8

Please sign in to comment.