So I used to be able to run multiple assertions however now I keep getting the warning “Unused expression without side effects”. Every assertion on its own however passes the test just fine. How would I get around this?
`
val result = borrowingService.transform(input)
val overview = result.openAccounts.head
overview.accountType shouldBe "CreditCard"
overview.totalBalance shouldBe SummaryMonetaryAmount(4000, 2, "GBP")
overview.totalLimit shouldBe SummaryMonetaryAmount(12000, 2, "GBP")
overview.totalUtilisation shouldBe Some(33)`
I don’t want to return the entire response because I want to test for these specific fields
New contributor
clive_ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.