Fix: get All vote of current citizen now return complete target
This commit is contained in:
@@ -50,7 +50,7 @@ class KtorServerRequestSteps : En {
|
||||
Then("the response should contain object:") { expected: DataTable ->
|
||||
expected.asMap<String, String>(String::class.java, String::class.java).forEach { (key, valueExpected) ->
|
||||
val jsonPrimitive = findJsonElement(key) as? JsonPrimitive ?: fail("\"$key\" element isn't json primitive")
|
||||
assertEquals(jsonPrimitive.asString, valueExpected)
|
||||
assertEquals(valueExpected, jsonPrimitive.asString)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user