Skip to content

Commit

Permalink
Remove unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Sep 12, 2023
1 parent 49f7577 commit 86c218b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/release/__tests__/label-patches.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ beforeEach(() => {
// mock IO
jest.clearAllMocks();
gitClient.getLatestTag.mockResolvedValue('v7.2.1');
(gitClient.git.log as any).mockResolvedValue(gitLogMock);
(gitClient.git.getRemotes as any).mockResolvedValue(remoteMock);
gitClient.git.log.mockResolvedValue(gitLogMock);
gitClient.git.getRemotes.mockResolvedValue(remoteMock);
githubInfo.getPullInfoFromCommit.mockResolvedValue(pullInfoMock);
github.getLabelIds.mockResolvedValue({ 'patch:done': 'pick-id' });
github.getUnpickedPRs.mockResolvedValue([
Expand Down Expand Up @@ -156,7 +156,7 @@ test('it should label all PRs when the --all flag is passed', async () => {
process.env.GH_TOKEN = 'MY_SECRET';

// clear the git log, it shouldn't depend on it in --all mode
(gitClient.git.log as any).mockResolvedValue({
gitClient.git.log.mockResolvedValue({
all: [],
latest: null!,
total: 0,
Expand Down

0 comments on commit 86c218b

Please sign in to comment.