Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View does not have 'onDisappear' modifier #215

Open
bitsmakerde opened this issue Dec 7, 2022 · 1 comment
Open

View does not have 'onDisappear' modifier #215

bitsmakerde opened this issue Dec 7, 2022 · 1 comment
Labels
more info needed The progress is halted due to insufficient information

Comments

@bitsmakerde
Copy link

Hi @nalexn

I want test code which should call in onDisappear function. But for me isn't possible to call this func from the test.

I try this here

try sut.inspect().callOnDisappear()
XCTAssertEqual(makeSUTResult.cameraSettingsDelegateSpy.storeCameraSettingsCount, 1)

But I get always this error

failed: caught error: "CameraView does not have 'onDisappear' modifier"

I added the onDisappear to my view which I'm testing.

How I can write a test for my use case?

Thank you

@nalexn
Copy link
Owner

nalexn commented Jan 6, 2023

Hey, please provide the structure of the CameraView you're trying to inspect, that's hard to tell without any input

@nalexn nalexn added the help wanted Extra attention is needed label Jan 6, 2023
@nalexn nalexn added more info needed The progress is halted due to insufficient information and removed help wanted Extra attention is needed labels Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed The progress is halted due to insufficient information
Projects
None yet
Development

No branches or pull requests

2 participants