Skip to content

Commit 1765a15

Browse files
committed
test(analyzer): Fix-up a broken assertion
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]>
1 parent 41b450b commit 1765a15

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

analyzer/src/test/kotlin/AnalyzerResultBuilderTest.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,16 @@ class AnalyzerResultBuilderTest : WordSpec() {
157157
"not change its representation when serialized again" {
158158
val p1 = project1.copy(scopeDependencies = null, scopeNames = setOf("scope1"))
159159
val p2 = project2.copy(scopeDependencies = null, scopeNames = setOf("scope3"))
160-
val result = AnalyzerResult(
160+
val serializedResult = AnalyzerResult(
161161
projects = setOf(p1, p2, project3),
162162
packages = emptySet(),
163163
dependencyGraphs = mapOf(
164164
project1.id.type to graph1,
165165
project2.id.type to graph2
166166
)
167-
)
168-
169-
val serializedResult = result.toYaml().fromYaml<AnalyzerResult>().toYaml()
167+
).toYaml()
170168

171-
serializedResult shouldBe serializedResult
169+
serializedResult.fromYaml<AnalyzerResult>().toYaml() shouldBe serializedResult
172170
}
173171

174172
"use the dependency graph representation on serialization" {

0 commit comments

Comments
 (0)