Address review comments.

This commit is contained in:
akwizgran
2019-05-22 17:46:17 +01:00
parent 01ef367864
commit de97cce119
2 changed files with 6 additions and 13 deletions

View File

@@ -130,16 +130,11 @@ internal class ContactControllerTest : ControllerTest() {
every { contactManager.pendingContacts } returns listOf(
Pair(pendingContact, WAITING_FOR_CONNECTION)
)
every {
ctx.json(
listOf(
JsonDict(
"pendingContact" to pendingContact.output(),
"state" to WAITING_FOR_CONNECTION.output()
)
)
)
} returns ctx
val dict = JsonDict(
"pendingContact" to pendingContact.output(),
"state" to WAITING_FOR_CONNECTION.output()
)
every { ctx.json(listOf(dict)) } returns ctx
controller.listPendingContacts(ctx)
}