Similar to https://github.com/Quick/Nimble/issues/276
Here's my code:
let promise = TestUtils.getMockServerJSON(method: .POST, path: "/accounts")
expect(promise.fulfilled).toEventually(beTrue())
expect { _ -> Account in
return try Unbox(promise.value!) // Failure here
}.toNot(throwError())
I'll workaround it by doing a do/catch for now.
Update: do/catch doesn't work around the issue :/
My bad, I was putting this code in a describe instead of a it. Closing.
Most helpful comment
My bad, I was putting this code in a
describeinstead of ait. Closing.