Skip to content

Instantly share code, notes, and snippets.

@fernandodelrio
Created November 26, 2018 16:39
Show Gist options
  • Save fernandodelrio/dcad12410c3cd8c6e187dad1dad40dfc to your computer and use it in GitHub Desktop.
Save fernandodelrio/dcad12410c3cd8c6e187dad1dad40dfc to your computer and use it in GitHub Desktop.
func testLongText() {
guard let viewModel = view?.viewModel as? MockContactViewModel else {
XCTFail("Unit test should be using mock view model")
return
}
guard let view = view as? ContactViewController else {
XCTFail("Unit test should be using UIViewController")
return
}
viewModel.settings = [.dataLoaded, .longName, .longDescription]
viewModel.verifyView { identifier in
FBSnapshotVerifyView(view.view, identifier: identifier)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment