feat: Adds quick calculation views, need to add buttons / links in navbar / home page.
This commit is contained in:
@@ -27,6 +27,18 @@ struct ViewControllerTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
func quickCalc() async throws {
|
||||
try await withDependencies {
|
||||
$0.viewController = .liveValue
|
||||
$0.auth = .failing
|
||||
} operation: {
|
||||
@Dependency(\.viewController) var viewController
|
||||
let view = try await viewController.view(.test(.quickCalc(.index)))
|
||||
assertSnapshot(of: view, as: .html)
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
func login() async throws {
|
||||
try await withDependencies {
|
||||
|
||||
Reference in New Issue
Block a user