Last active
February 19, 2018 03:25
-
-
Save fedejordan/e5ead555bf500cc4c89c0a5f05a4323e to your computer and use it in GitHub Desktop.
Blog01 - First snapshot test example
This file contains 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 FBSnapshotTestCase | |
@testable import FBSnapshotTestCaseExample | |
class FBSnapshotTestCaseExampleTests: FBSnapshotTestCase { | |
override func setUp() { | |
super.setUp() | |
self.recordMode = false | |
} | |
func testExample() { | |
let viewController: UIViewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "ViewController") | |
FBSnapshotVerifyView(viewController.view) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment