Last active
November 23, 2020 02:00
-
-
Save brunomunizaf/64070c143ebb5caa4319c05fcd162cdd to your computer and use it in GitHub Desktop.
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 XCTest | |
import SnapshotTesting | |
@testable import myapp | |
final class ScreenTests: XCTestCase { | |
var sut: Screen! | |
override func setup() { | |
sut = Screen() | |
} | |
func test_screenSnapshot() { | |
assertSnapshot(matching: sut, as: .image(on: .iPhone8)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment