Skip to content

Commit

Permalink
test(black-duck): Rename a variable for consistency
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Jan 29, 2025
1 parent 18396a0 commit 235dd05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/advisors/black-duck/src/test/kotlin/BlackDuckTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ import org.ossreviewtoolkit.utils.test.matchExpectedResult
class BlackDuckTest : WordSpec({
"toOrtVulnerability()" should {
"parse a vulnerability with CVSS 3.1 and with duplicate links as expected" {
val expectedResult = getAssetFile("BDSA-2024-5272-parsed.yml")
val expectedResultFile = getAssetFile("BDSA-2024-5272-parsed.yml")
val vulnerabilityView = readVulnerabilityViewAssetFile("BDSA-2024-5272.json")

val vulnerability = vulnerabilityView.toOrtVulnerability()

vulnerability.toYaml() shouldBe matchExpectedResult(expectedResult)
vulnerability.toYaml() shouldBe matchExpectedResult(expectedResultFile)
}
}
})
Expand Down

0 comments on commit 235dd05

Please sign in to comment.