feat: Updates tests to include home page snapshot test, updates TODO's.
All checks were successful
CI / Linux Tests (push) Successful in 5m52s
All checks were successful
CI / Linux Tests (push) Successful in 5m52s
This commit is contained in:
@@ -14,6 +14,19 @@ import ViewController
|
||||
@Suite(.snapshots(record: .failed))
|
||||
struct ViewControllerTests {
|
||||
|
||||
@Test
|
||||
func home() async throws {
|
||||
try await withDependencies {
|
||||
$0.viewController = .liveValue
|
||||
$0.auth = .failing
|
||||
} operation: {
|
||||
@Dependency(\.viewController) var viewController
|
||||
|
||||
let home = try await viewController.view(.test(.home))
|
||||
assertSnapshot(of: home, as: .html)
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
func login() async throws {
|
||||
try await withDependencies {
|
||||
|
||||
Reference in New Issue
Block a user