feat(platform): expose no-data vehicles
This commit is contained in:
@@ -131,6 +131,16 @@ func TestHandlerVehicleCoverageSummary(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestSplitCSVEmptyReturnsEmptySlice(t *testing.T) {
|
||||
values := splitCSV("")
|
||||
if values == nil {
|
||||
t.Fatalf("empty CSV should encode as [] instead of JSON null")
|
||||
}
|
||||
if len(values) != 0 {
|
||||
t.Fatalf("empty CSV should have no values, got %#v", values)
|
||||
}
|
||||
}
|
||||
|
||||
func TestHandlerVehicleDetail(t *testing.T) {
|
||||
handler := NewHandler(NewService(NewMockStore()))
|
||||
rec := httptest.NewRecorder()
|
||||
|
||||
Reference in New Issue
Block a user