Created
September 17, 2020 21:06
-
-
Save robertofrontado/c64ad4da428e9655f8cf51c020a6f901 to your computer and use it in GitHub Desktop.
SnapshotTesting-Test-LoginViewController
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
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