@@ -131,7 +131,7 @@ class NewPullRequestDataTest extends FunSuite {
131
131
assertEquals(body, expected)
132
132
}
133
133
134
- test(" bodyFor() groupped update" ) {
134
+ test(" bodyFor() grouped update" ) {
135
135
val update1 = (" ch.qos.logback" .g % " logback-classic" .a % " 1.2.0" %> " 1.2.3" ).single
136
136
val update2 = (" com.example" .g % " foo" .a % " 1.0.0" %> " 2.0.0" ).single
137
137
val update = Update .Grouped (" my-group" , Some (" The PR title" ), List (update1, update2))
@@ -515,6 +515,13 @@ class NewPullRequestDataTest extends FunSuite {
515
515
assertEquals(labels, expected)
516
516
}
517
517
518
+ test(" artifact-migrations label" ) {
519
+ val update = (" a" .g % " b" .a % " 1" -> " 2" ).single.copy(newerGroupId = Some (" aa" .g))
520
+ val obtained = labelsFor(update)
521
+ val expected = List (" library-update" , " artifact-migrations" , " commit-count:0" )
522
+ assertEquals(obtained, expected)
523
+ }
524
+
518
525
test(" oldVersionNote doesn't show version for grouped updates" ) {
519
526
val files = List (" Readme.md" , " travis.yml" )
520
527
val update1 = (" a" .g % " b" .a % " 1" -> " 2" ).single
@@ -539,7 +546,7 @@ class NewPullRequestDataTest extends FunSuite {
539
546
)
540
547
}
541
548
542
- test(" adjustFutureUpdates for grouped udpates shows settings for each update" ) {
549
+ test(" adjustFutureUpdates for grouped updates shows settings for each update" ) {
543
550
val update1 = (" a" .g % " b" .a % " 1" -> " 2" ).single
544
551
val update2 = (" c" .g % " d" .a % " 1.1.0" % " test" %> " 1.2.0" ).single
545
552
val update = Update .Grouped (" my-group" , None , List (update1, update2))
0 commit comments