@@ -133,19 +133,20 @@ test('it sets the updated dependency as an output for subsequent actions when gi
133133} )
134134
135135test ( '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