Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Nov 18, 2023
1 parent 402d64f commit 0c91a09
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/unit/createOrUpdateStagingDeployTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,10 @@ describe('createOrUpdateStagingDeployCash', () => {
[PATH_TO_PACKAGE_JSON]: JSON.stringify({version: '1.0.2-1'}),
});
mockGetInput.mockImplementation((arg) => {
if (arg === 'GITHUB_TOKEN') {
return 'fake_token';
if (arg !== 'GITHUB_TOKEN') {
return;
}
return 'fake_token';
});

mockGetPullRequestsMergedBetween.mockImplementation((fromRef, toRef) => {
Expand Down Expand Up @@ -246,9 +247,10 @@ describe('createOrUpdateStagingDeployCash', () => {
[PATH_TO_PACKAGE_JSON]: JSON.stringify({version: '1.0.2-2'}),
});
mockGetInput.mockImplementation((arg) => {
if (arg === 'GITHUB_TOKEN') {
return 'fake_token';
if (arg !== 'GITHUB_TOKEN') {
return;
}
return 'fake_token';
});

// New pull requests to add to open StagingDeployCash
Expand Down

0 comments on commit 0c91a09

Please sign in to comment.