Skip to content

Commit 6e159c1

Browse files
committed
Restore removed test cases
1 parent e25100e commit 6e159c1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

modules/core/src/test/scala/org/scalasteward/core/vcs/VCSPackageTest.scala

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ class VCSPackageTest extends AnyFunSuite with Matchers {
6161
"https://bitbucket.org/foo/bar/compare/release-1.2.3..release-1.2.0#diff"
6262
)
6363

64+
possibleCompareUrls(
65+
SupportedVCS.GitHub,
66+
onPremVCSUri,
67+
uri"https://scalacenter.github.io/scalafix/",
68+
update
69+
) shouldBe List.empty
70+
6471
possibleCompareUrls(SupportedVCS.GitHub, onPremVCSUri, onPremVCSUri.addPath("/foo/bar"), update)
6572
.map(_.url.renderString) shouldBe List(
6673
s"${onPremVCS}foo/bar/compare/v1.2.0...v1.2.3",
@@ -164,4 +171,14 @@ class VCSPackageTest extends AnyFunSuite with Matchers {
164171
"https://bitbucket.org/foo/bar/compare/release-1.2.3..release-1.2.0#diff"
165172
)
166173
}
174+
175+
test("possibleChangelogUrls: homepage") {
176+
possibleReleaseRelatedUrls(
177+
SupportedVCS.GitHub,
178+
uri"https://github.com",
179+
uri"https://scalacenter.github.io/scalafix/",
180+
update
181+
)
182+
.map(_.url.renderString) shouldBe List.empty
183+
}
167184
}

0 commit comments

Comments
 (0)