Skip to content

Commit

Permalink
Adjust indent style with existing code
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jan 22, 2023
1 parent cf0e979 commit 0a3f183
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,20 @@ test('it sets the updated dependency as an output for subsequent actions when gi
})

test('it sets the updated dependency as an output for subsequent actions when given a commit message for library', async () => {
const mockCommitMessage = `Update rubocop requirement from ~> 1.30.1 to ~> 1.31.0
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v1.30.1...v1.31.0)
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>`
const mockCommitMessage =
'Update rubocop requirement from ~> 1.30.1 to ~> 1.31.0\n' +
'Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.\n' +
'- [Release notes](https://github.com/rubocop/rubocop/releases)\n' +
'- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)\n' +
'- [Commits](rubocop/rubocop@v1.30.1...v1.31.0)\n' +
'\n' +
'---\n' +
'updated-dependencies:\n' +
'- dependency-name: rubocop\n' +
' dependency-type: direct:development\n' +
'...\n' +
'\n' +
'Signed-off-by: dependabot[bot] <support@github.com>'
const mockAlert = { alertState: 'FIXED', ghsaId: 'GSHA', cvss: 3.4 }

jest.spyOn(core, 'getInput').mockImplementation(jest.fn((name) => { return name === 'github-token' ? 'mock-token' : '' }))
Expand Down

0 comments on commit 0a3f183

Please sign in to comment.