robstoll
05/30/2021, 10:57 AMexpect(transactions.map { it.state }).all { toBe(...) }
But I would suggest the following so that you see the specific transaction where the state is wrong in the error report:
expect(transactions).all { its { state }.toBe(...) }