diff --git a/json-unit-kotest/src/test/kotlin/net/javacrumbs/jsonunit/kotest/test/KotestTest.kt b/json-unit-kotest/src/test/kotlin/net/javacrumbs/jsonunit/kotest/test/KotestTest.kt index 635bb3f6..6f48eebf 100644 --- a/json-unit-kotest/src/test/kotlin/net/javacrumbs/jsonunit/kotest/test/KotestTest.kt +++ b/json-unit-kotest/src/test/kotlin/net/javacrumbs/jsonunit/kotest/test/KotestTest.kt @@ -136,7 +136,7 @@ Different value found in node "$.test", expected: <2> but was: <1>.""" assertThrows { """{"test": [1, 2, 3, 1]}""".inPath("test").shouldBeJsonArray().shouldNotContainDuplicates() } - .shouldHaveMessage("""Collection should not contain duplicates""") + .shouldHaveMessage("""Collection should not contain duplicates, but has some: [1]""") } @Test