Skip to content

Commit 0c7c054

Browse files
committed
fix(utils): Add a missing test to PackageConfigurationTest
This is a fixup for 02fb740. Signed-off-by: Nicolas Nobelis <[email protected]>
1 parent 5f5de54 commit 0c7c054

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

model/src/test/kotlin/config/PackageConfigurationTest.kt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,18 @@ class PackageConfigurationTest : WordSpec({
180180
REPOSITORY_PROVENANCE
181181
) shouldBe true
182182
}
183+
184+
"return false if only the source code origin is not equal" {
185+
val config =
186+
PackageConfiguration(
187+
id = Identifier.EMPTY.copy(name = "some-name"),
188+
sourceCodeOrigin = SourceCodeOrigin.VCS
189+
)
190+
191+
config.matches(
192+
config.id,
193+
ARTIFACT_PROVENANCE
194+
) shouldBe false
195+
}
183196
}
184197
})

0 commit comments

Comments
 (0)