Skip to content

Commit

Permalink
ExamplesFunTest: Sort the list of expected violations alphabetically
Browse files Browse the repository at this point in the history
Prepare for extending the test case.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau committed Sep 7, 2022
1 parent 016823b commit 0deb564
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/src/funTest/kotlin/ExamplesFunTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ class ExamplesFunTest : StringSpec() {
val result = evaluator.run(script)

result.violations.map { it.rule } shouldContainExactlyInAnyOrder listOf(
"UNHANDLED_LICENSE",
"COPYLEFT_LIMITED_IN_SOURCE",
"VULNERABILITY_IN_PACKAGE",
"DEPRECATED_SCOPE_EXCLUDE_REASON_IN_ORT_YML",
"HIGH_SEVERITY_VULNERABILITY_IN_PACKAGE",
"DEPRECATED_SCOPE_EXCLUDE_REASON_IN_ORT_YML"
"UNHANDLED_LICENSE",
"VULNERABILITY_IN_PACKAGE"
)
}

Expand Down

0 comments on commit 0deb564

Please sign in to comment.