add test for route id

This commit is contained in:
Joel Wetzell
2026-08-28 14:22:48 -05:00
parent 5574b73c78
commit f9287cc87e
+5
View File
@@ -13,6 +13,7 @@ import (
func TestRouteCreate(t *testing.T) { func TestRouteCreate(t *testing.T) {
routeConfig := config.RouteConfig{ routeConfig := config.RouteConfig{
Id: "test-route",
Input: "input", Input: "input",
} }
@@ -21,6 +22,10 @@ func TestRouteCreate(t *testing.T) {
t.Fatalf("route failed to create: %v", err) t.Fatalf("route failed to create: %v", err)
} }
if testRoute.Id() != routeConfig.Id {
t.Fatalf("route id does not match expected id")
}
if testRoute.Input() != routeConfig.Input { if testRoute.Input() != routeConfig.Input {
t.Fatalf("route input does not match expected input") t.Fatalf("route input does not match expected input")
} }