Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertofrontado/c64ad4da428e9655f8cf51c020a6f901 to your computer and use it in GitHub Desktop.
Save robertofrontado/c64ad4da428e9655f8cf51c020a6f901 to your computer and use it in GitHub Desktop.
SnapshotTesting-Test-LoginViewController
import XCTest
import SnapshotTesting
@testable import SampleApp
class LoginViewControllerSnapshotTests: XCTestCase {
func test_loginViewControllerDefaultState() {
let viewController = UINavigationController(rootViewController: LoginViewController2())
let result = verifySnapshot(matching: viewController,
as: .image(on: .iPhoneX),
named: "Default",
testName: "LoginViewController")
XCTAssertNil(result)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment