aaverin
08/23/2018, 3:31 PM@Test
fun `ok result of registration results in success`() = blocking {
val result = classToTest.execute(appConfig).await()
mockRegisterResponseSuccess(ApiResponseStatus.OK)
mockInitAppPurchasesSuccess()
result.should.be.equal(trackingId)
}
Martin Devillers
08/23/2018, 3:32 PMDeferred
into a local variable and waiting until you’ve fired the mocks before calling await
on itMartin Devillers
08/23/2018, 3:32 PMgildor
08/23/2018, 3:34 PM