```expect(transactions.map { it.state }).all { to...
# atrium
r
Copy code
expect(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:
Copy code
expect(transactions).all { its { state }.toBe(...) }