Replies: 1 comment
-
You can also use expect with closures, like so: // ... the rest of your setup
it("should call setup and update background color") {
view.setup()
// then
await expect { await view.backgroundColor }.to(equal(.black))
} I would also suggest checking out the Quick 7 beta. In Quick 7, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
When I am trying to write test on my custom view in expect block I got the following error:
Main actor-isolated property 'backgroundColor' can not be referenced from a non-isolated autoclosure
My Test:
This is my test view:
It can't initialise it not on main thread somehow. How to fix it? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions