@@ -133,19 +133,20 @@ test('it sets the updated dependency as an output for subsequent actions when gi
133
133
} )
134
134
135
135
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] >'
149
150
const mockAlert = { alertState : 'FIXED' , ghsaId : 'GSHA' , cvss : 3.4 }
150
151
151
152
jest . spyOn ( core , 'getInput' ) . mockImplementation ( jest . fn ( ( name ) => { return name === 'github-token' ? 'mock-token' : '' } ) )
0 commit comments