feat(platform): skip vehicle sections for unresolved lookup
This commit is contained in:
@@ -112,6 +112,9 @@ func TestHandlerVehicleDetailKeepsUnresolvedLookupOutOfVIN(t *testing.T) {
|
||||
if body.Data.VIN == "64646848247" {
|
||||
t.Fatalf("unresolved lookup should not be returned as top-level VIN: %s", rec.Body.String())
|
||||
}
|
||||
if len(body.Data.Sources) != 0 || len(body.Data.SourceStatus) != 0 || len(body.Data.Raw.Items) != 0 || len(body.Data.History.Items) != 0 || len(body.Data.Mileage.Items) != 0 {
|
||||
t.Fatalf("unresolved lookup should not return vehicle data sections: %+v", body.Data)
|
||||
}
|
||||
}
|
||||
|
||||
func TestHandlerRealtimeLocations(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user