Created
November 26, 2018 16:39
-
-
Save fernandodelrio/dcad12410c3cd8c6e187dad1dad40dfc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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