Skip to content

Commit

Permalink
test(analyzer): Fix-up a broken assertion
Browse files Browse the repository at this point in the history
The left hand side and right hand side operator of `shouldBe` were
accidentally made identical by [1].

[1]: 3de069b

Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed May 27, 2024
1 parent 41b450b commit 1765a15
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions analyzer/src/test/kotlin/AnalyzerResultBuilderTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,16 @@ class AnalyzerResultBuilderTest : WordSpec() {
"not change its representation when serialized again" {
val p1 = project1.copy(scopeDependencies = null, scopeNames = setOf("scope1"))
val p2 = project2.copy(scopeDependencies = null, scopeNames = setOf("scope3"))
val result = AnalyzerResult(
val serializedResult = AnalyzerResult(
projects = setOf(p1, p2, project3),
packages = emptySet(),
dependencyGraphs = mapOf(
project1.id.type to graph1,
project2.id.type to graph2
)
)

val serializedResult = result.toYaml().fromYaml<AnalyzerResult>().toYaml()
).toYaml()

serializedResult shouldBe serializedResult
serializedResult.fromYaml<AnalyzerResult>().toYaml() shouldBe serializedResult
}

"use the dependency graph representation on serialization" {
Expand Down

0 comments on commit 1765a15

Please sign in to comment.