Skip to content

Commit f748286

Browse files
committed
snapshot test added - need adjustments
1 parent 7fb2a6f commit f748286

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//
2+
// ConfirmationViewTests.swift
3+
// FinanceAppTests
4+
//
5+
// Created by Mauricio on 19/10/22.
6+
//
7+
8+
@testable import FinanceApp
9+
import SnapshotTesting
10+
import XCTest
11+
12+
final class ConfirmationViewTests: XCTestCase {
13+
14+
override class func setUp() {
15+
// SnapshotTesting.isRecording = true
16+
}
17+
18+
func testRenderView() {
19+
let component = ConfirmationView()
20+
component.backgroundColor = .green
21+
assertSnapshot(matching: component, as: .image(size: CGSize(width: UIScreen.main.bounds.width,
22+
height: UIScreen.main.bounds.height)))
23+
}
24+
}

0 commit comments

Comments
 (0)