mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-09-10 15:39:25 +00:00
add test for route id
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user