feat: Refactoring route declarations.
This commit is contained in:
@@ -90,7 +90,7 @@ struct ViewControllerTests {
|
||||
htmlString = try await viewController.render(.purchaseOrder(.page(page: 1, limit: 25)))
|
||||
assertSnapshot(of: htmlString, as: .html)
|
||||
|
||||
for context in ViewRoute.PurchaseOrderRoute.Search.Context.allCases {
|
||||
for context in SiteRoute.View.PurchaseOrderRoute.Search.Context.allCases {
|
||||
htmlString = try await viewController.render(.purchaseOrder(.search(.index(
|
||||
context: context,
|
||||
table: true
|
||||
@@ -189,7 +189,7 @@ struct ViewControllerTests {
|
||||
|
||||
extension ViewController {
|
||||
|
||||
func render(_ route: ViewRoute) async throws -> String {
|
||||
func render(_ route: SiteRoute.View) async throws -> String {
|
||||
let html = try await view(
|
||||
for: route,
|
||||
isHtmxRequest: true,
|
||||
|
||||
Reference in New Issue
Block a user