Skip to content

Commit 0a3f183

Browse files
committed
Adjust indent style with existing code
#224 (comment)
1 parent cf0e979 commit 0a3f183

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

src/main.test.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,20 @@ test('it sets the updated dependency as an output for subsequent actions when gi
133133
})
134134

135135
test('it sets the updated dependency as an output for subsequent actions when given a commit message for library', async () => {
136-
const mockCommitMessage = `Update rubocop requirement from ~> 1.30.1 to ~> 1.31.0
137-
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
138-
- [Release notes](https://github.com/rubocop/rubocop/releases)
139-
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
140-
- [Commits](rubocop/[email protected])
141-
142-
---
143-
updated-dependencies:
144-
- dependency-name: rubocop
145-
dependency-type: direct:development
146-
...
147-
148-
Signed-off-by: dependabot[bot] <[email protected]>`
136+
const mockCommitMessage =
137+
'Update rubocop requirement from ~> 1.30.1 to ~> 1.31.0\n' +
138+
'Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.\n' +
139+
'- [Release notes](https://github.com/rubocop/rubocop/releases)\n' +
140+
'- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)\n' +
141+
'- [Commits](rubocop/[email protected])\n' +
142+
'\n' +
143+
'---\n' +
144+
'updated-dependencies:\n' +
145+
'- dependency-name: rubocop\n' +
146+
' dependency-type: direct:development\n' +
147+
'...\n' +
148+
'\n' +
149+
'Signed-off-by: dependabot[bot] <[email protected]>'
149150
const mockAlert = { alertState: 'FIXED', ghsaId: 'GSHA', cvss: 3.4 }
150151

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

0 commit comments

Comments
 (0)