@@ -133,20 +133,20 @@ test('it sets the updated dependency as an output for subsequent actions when gi
133133 ]
134134 )
135135
136- expect ( core . setOutput ) . toBeCalledWith ( 'dependency-names' , 'coffee-rails' )
137- expect ( core . setOutput ) . toBeCalledWith ( 'dependency-type' , 'direct:production' )
138- expect ( core . setOutput ) . toBeCalledWith ( 'update-type' , 'version-update:semver-minor' )
139- expect ( core . setOutput ) . toBeCalledWith ( 'directory' , '/' )
140- expect ( core . setOutput ) . toBeCalledWith ( 'package-ecosystem' , 'nuget' )
141- expect ( core . setOutput ) . toBeCalledWith ( 'target-branch' , 'main' )
142- expect ( core . setOutput ) . toBeCalledWith ( 'previous-version' , '4.0.1' )
143- expect ( core . setOutput ) . toBeCalledWith ( 'new-version' , '4.2.2' )
144- expect ( core . setOutput ) . toBeCalledWith ( 'compatibility-score' , 0 )
145- expect ( core . setOutput ) . toBeCalledWith ( 'maintainer-changes' , false )
146- expect ( core . setOutput ) . toBeCalledWith ( 'dependency-group' , '' )
147- expect ( core . setOutput ) . toBeCalledWith ( 'alert-state' , '' )
148- expect ( core . setOutput ) . toBeCalledWith ( 'ghsa-id' , '' )
149- expect ( core . setOutput ) . toBeCalledWith ( 'cvss' , 0 )
136+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'dependency-names' , 'coffee-rails' )
137+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'dependency-type' , 'direct:production' )
138+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'update-type' , 'version-update:semver-minor' )
139+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'directory' , '/' )
140+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'package-ecosystem' , 'nuget' )
141+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'target-branch' , 'main' )
142+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'previous-version' , '4.0.1' )
143+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'new-version' , '4.2.2' )
144+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'compatibility-score' , 0 )
145+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'maintainer-changes' , false )
146+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'dependency-group' , '' )
147+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'alert-state' , '' )
148+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'ghsa-id' , '' )
149+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'cvss' , 0 )
150150} )
151151
152152test ( 'it sets the updated dependency as an output for subsequent actions when there is a leading v in the commit message version' , async ( ) => {
@@ -206,20 +206,20 @@ test('it sets the updated dependency as an output for subsequent actions when th
206206 ]
207207 )
208208
209- expect ( core . setOutput ) . toBeCalledWith ( 'dependency-names' , 'coffee-rails' )
210- expect ( core . setOutput ) . toBeCalledWith ( 'dependency-type' , 'direct:production' )
211- expect ( core . setOutput ) . toBeCalledWith ( 'update-type' , 'version-update:semver-minor' )
212- expect ( core . setOutput ) . toBeCalledWith ( 'directory' , '/' )
213- expect ( core . setOutput ) . toBeCalledWith ( 'package-ecosystem' , 'nuget' )
214- expect ( core . setOutput ) . toBeCalledWith ( 'target-branch' , 'main' )
215- expect ( core . setOutput ) . toBeCalledWith ( 'previous-version' , 'v4.0.1' )
216- expect ( core . setOutput ) . toBeCalledWith ( 'new-version' , 'v4.2.2' )
217- expect ( core . setOutput ) . toBeCalledWith ( 'compatibility-score' , 0 )
218- expect ( core . setOutput ) . toBeCalledWith ( 'maintainer-changes' , false )
219- expect ( core . setOutput ) . toBeCalledWith ( 'dependency-group' , '' )
220- expect ( core . setOutput ) . toBeCalledWith ( 'alert-state' , '' )
221- expect ( core . setOutput ) . toBeCalledWith ( 'ghsa-id' , '' )
222- expect ( core . setOutput ) . toBeCalledWith ( 'cvss' , 0 )
209+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'dependency-names' , 'coffee-rails' )
210+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'dependency-type' , 'direct:production' )
211+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'update-type' , 'version-update:semver-minor' )
212+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'directory' , '/' )
213+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'package-ecosystem' , 'nuget' )
214+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'target-branch' , 'main' )
215+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'previous-version' , 'v4.0.1' )
216+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'new-version' , 'v4.2.2' )
217+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'compatibility-score' , 0 )
218+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'maintainer-changes' , false )
219+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'dependency-group' , '' )
220+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'alert-state' , '' )
221+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'ghsa-id' , '' )
222+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'cvss' , 0 )
223223} )
224224
225225test ( 'it supports returning information about grouped updates' , async ( ) => {
@@ -390,20 +390,20 @@ test('it sets the updated dependency as an output for subsequent actions when gi
390390 ]
391391 )
392392
393- expect ( core . setOutput ) . toBeCalledWith ( 'dependency-names' , 'rubocop' )
394- expect ( core . setOutput ) . toBeCalledWith ( 'dependency-type' , 'direct:development' )
395- expect ( core . setOutput ) . toBeCalledWith ( 'update-type' , 'version-update:semver-minor' )
396- expect ( core . setOutput ) . toBeCalledWith ( 'directory' , '/' )
397- expect ( core . setOutput ) . toBeCalledWith ( 'package-ecosystem' , 'bundler' )
398- expect ( core . setOutput ) . toBeCalledWith ( 'target-branch' , 'main' )
399- expect ( core . setOutput ) . toBeCalledWith ( 'previous-version' , '1.30.1' )
400- expect ( core . setOutput ) . toBeCalledWith ( 'new-version' , '1.31.0' )
401- expect ( core . setOutput ) . toBeCalledWith ( 'compatibility-score' , 0 )
402- expect ( core . setOutput ) . toBeCalledWith ( 'maintainer-changes' , false )
403- expect ( core . setOutput ) . toBeCalledWith ( 'dependency-group' , '' )
404- expect ( core . setOutput ) . toBeCalledWith ( 'alert-state' , '' )
405- expect ( core . setOutput ) . toBeCalledWith ( 'ghsa-id' , '' )
406- expect ( core . setOutput ) . toBeCalledWith ( 'cvss' , 0 )
393+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'dependency-names' , 'rubocop' )
394+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'dependency-type' , 'direct:development' )
395+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'update-type' , 'version-update:semver-minor' )
396+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'directory' , '/' )
397+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'package-ecosystem' , 'bundler' )
398+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'target-branch' , 'main' )
399+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'previous-version' , '1.30.1' )
400+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'new-version' , '1.31.0' )
401+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'compatibility-score' , 0 )
402+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'maintainer-changes' , false )
403+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'dependency-group' , '' )
404+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'alert-state' , '' )
405+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'ghsa-id' , '' )
406+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'cvss' , 0 )
407407} )
408408
409409test ( 'if there are multiple dependencies, it summarizes them' , async ( ) => {
@@ -484,20 +484,20 @@ test('if there are multiple dependencies, it summarizes them', async () => {
484484 ]
485485 )
486486
487- expect ( core . setOutput ) . toBeCalledWith ( 'dependency-names' , 'coffee-rails, coffeescript' )
488- expect ( core . setOutput ) . toBeCalledWith ( 'dependency-type' , 'direct:production' )
489- expect ( core . setOutput ) . toBeCalledWith ( 'update-type' , 'version-update:semver-major' )
490- expect ( core . setOutput ) . toBeCalledWith ( 'directory' , '/api/main' )
491- expect ( core . setOutput ) . toBeCalledWith ( 'package-ecosystem' , 'npm_and_yarn' )
492- expect ( core . setOutput ) . toBeCalledWith ( 'target-branch' , 'trunk' )
493- expect ( core . setOutput ) . toBeCalledWith ( 'previous-version' , '4.0.1' )
494- expect ( core . setOutput ) . toBeCalledWith ( 'new-version' , '4.2.2' )
495- expect ( core . setOutput ) . toBeCalledWith ( 'compatibility-score' , 34 )
496- expect ( core . setOutput ) . toBeCalledWith ( 'maintainer-changes' , false )
497- expect ( core . setOutput ) . toBeCalledWith ( 'dependency-group' , '' )
498- expect ( core . setOutput ) . toBeCalledWith ( 'alert-state' , '' )
499- expect ( core . setOutput ) . toBeCalledWith ( 'ghsa-id' , '' )
500- expect ( core . setOutput ) . toBeCalledWith ( 'cvss' , 0 )
487+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'dependency-names' , 'coffee-rails, coffeescript' )
488+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'dependency-type' , 'direct:production' )
489+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'update-type' , 'version-update:semver-major' )
490+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'directory' , '/api/main' )
491+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'package-ecosystem' , 'npm_and_yarn' )
492+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'target-branch' , 'trunk' )
493+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'previous-version' , '4.0.1' )
494+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'new-version' , '4.2.2' )
495+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'compatibility-score' , 34 )
496+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'maintainer-changes' , false )
497+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'dependency-group' , '' )
498+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'alert-state' , '' )
499+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'ghsa-id' , '' )
500+ expect ( core . setOutput ) . toHaveBeenCalledWith ( 'cvss' , 0 )
501501} )
502502
503503test ( 'it sets the action to failed if there is an unexpected exception' , async ( ) => {
0 commit comments