@@ -235,7 +235,11 @@ describe('JavaYoshi', () => {
235235 const updates = release ! . updates ;
236236 assertHasUpdate ( updates , 'CHANGELOG.md' , Changelog ) ;
237237 const { updater} = assertHasUpdate ( updates , 'path1/pom.xml' , JavaUpdate ) ;
238- expect ( ( updater as JavaUpdate ) . isSnapshot ) . to . be . false ;
238+ const javaUpdater = updater as JavaUpdate ;
239+ expect ( javaUpdater . isSnapshot ) . to . be . false ;
240+ expect (
241+ javaUpdater . versionsMap ?. get ( 'google-cloud-trace' ) ?. toString ( )
242+ ) . to . eql ( '0.108.1-beta' ) ;
239243 assertHasUpdate ( updates , 'path2/pom.xml' , JavaUpdate ) ;
240244 assertHasUpdate ( updates , 'path1/build.gradle' , JavaUpdate ) ;
241245 assertHasUpdate ( updates , 'path1/build.gradle' , JavaUpdate ) ;
@@ -303,7 +307,11 @@ describe('JavaYoshi', () => {
303307 const updates = release ! . updates ;
304308 assertNoHasUpdate ( updates , 'CHANGELOG.md' ) ;
305309 const { updater} = assertHasUpdate ( updates , 'path1/pom.xml' , JavaUpdate ) ;
306- expect ( ( updater as JavaUpdate ) . isSnapshot ) . to . be . true ;
310+ const javaUpdater = updater as JavaUpdate ;
311+ expect ( javaUpdater . isSnapshot ) . to . be . true ;
312+ expect (
313+ javaUpdater . versionsMap ?. get ( 'google-cloud-trace' ) ?. toString ( )
314+ ) . to . eql ( '0.108.1-beta-SNAPSHOT' ) ;
307315 assertHasUpdate ( updates , 'path2/pom.xml' , JavaUpdate ) ;
308316 assertHasUpdate ( updates , 'path1/build.gradle' , JavaUpdate ) ;
309317 assertHasUpdate ( updates , 'path1/build.gradle' , JavaUpdate ) ;
0 commit comments