mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-09-14 09:19:26 +00:00
add test for route id
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
|
||||
func TestRouteCreate(t *testing.T) {
|
||||
routeConfig := config.RouteConfig{
|
||||
Id: "test-route",
|
||||
Input: "input",
|
||||
}
|
||||
|
||||
@@ -21,6 +22,10 @@ func TestRouteCreate(t *testing.T) {
|
||||
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 {
|
||||
t.Fatalf("route input does not match expected input")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user