Skip to content

Commit c36951f

Browse files
committed
Fix test for case-sensitive properties
1 parent 5a6a10c commit c36951f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/service/handler_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ type FeatureCollection struct {
5050
}
5151

5252
const urlBase = "http://test"
53+
5354
var basePath = "/pg_featureserv"
5455

5556
var catalogMock *data.CatalogMock
@@ -319,10 +320,9 @@ func TestBBoxInvalid(t *testing.T) {
319320

320321
func TestProperties(t *testing.T) {
321322
// Tests:
322-
// - property names are non-case-sensitive
323323
// - names are made unique (properties only include once)
324324
// - non-existing names are ignored
325-
rr := doRequest(t, "/collections/mock_a/items?limit=2&properties=PROP_A,prop_C,prop_a,not_prop")
325+
rr := doRequest(t, "/collections/mock_a/items?limit=2&properties=PROP_A,prop_c,prop_a,not_prop")
326326

327327
var v FeatureCollection
328328
errUnMarsh := json.Unmarshal(readBody(rr), &v)
@@ -398,7 +398,7 @@ func TestFunctionMissingItemsNotFound(t *testing.T) {
398398
doRequestStatus(t, "/functions/missing/items", http.StatusNotFound)
399399
}
400400

401-
//============ Test HTML generation
401+
// ============ Test HTML generation
402402
// For now these just test that the template executes correctly
403403
// correctness/completess of HTML is not tested
404404
func TestHTMLRoot(t *testing.T) {

0 commit comments

Comments
 (0)