Skip to content

Commit ea125fa

Browse files
authored
Merge pull request #72 from github/dependabot/npm_and_yarn/npm-dependencies-e664f1d489
Bump the npm-dependencies group across 1 directory with 10 updates
2 parents 6ef89e0 + b42611a commit ea125fa

5 files changed

Lines changed: 2309 additions & 1501 deletions

File tree

‎__tests__/functions/check.test.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ test('successfully checks for a production lock and does not find a lock branch'
8686
})
8787

8888
test('successfully checks for a production lock and finds a global lock instead', async () => {
89-
;(octokit.rest.repos.getBranch = jest
89+
;((octokit.rest.repos.getBranch = jest
9090
.fn()
9191
.mockReturnValueOnce({data: {commit: {sha: 'cba123'}}})), // global lock
9292
(octokit.rest.getContent = jest
9393
.fn()
94-
.mockReturnValue({data: {content: lockBase64OctocatGlobal}}))
94+
.mockReturnValue({data: {content: lockBase64OctocatGlobal}})))
9595
expect(await check(octokit, context, environment)).toBe(true)
9696
expect(setOutputMock).toHaveBeenCalledWith('locked', 'true')
9797
expect(setOutputMock).toHaveBeenCalledWith('lock_environment', 'global')
@@ -112,10 +112,10 @@ test('successfully checks for a production lock and finds a global lock instead'
112112
})
113113

114114
test('successfully checks for a global lock and does not find one', async () => {
115-
;(octokit.rest.repos.getBranch = jest
115+
;((octokit.rest.repos.getBranch = jest
116116
.fn()
117117
.mockRejectedValueOnce(new NotFoundError('Reference does not exist'))), // global lock
118-
expect(await check(octokit, context, 'global')).toBe(false)
118+
expect(await check(octokit, context, 'global')).toBe(false))
119119
expect(setOutputMock).toHaveBeenCalledWith('locked', 'false')
120120
expect(infoMock).toHaveBeenCalledWith('global lock does not exist')
121121
})

‎dist/index.js‎

Lines changed: 21 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/index.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)