Make WithSort arg field names public (#10)

This commit is contained in:
Dylan Trotter
2021-12-23 12:33:12 -05:00
committed by GitHub
parent 3bd1ace8d8
commit da64a180a2
2 changed files with 8 additions and 8 deletions

View File

@@ -13,12 +13,12 @@ func TestGetRecordsConfig_Do(t *testing.T) {
table := testTable(t)
table.client.baseURL = mockResponse("get_records_with_filter.json").URL
sortQuery1 := struct {
fieldName string
direction string
FieldName string
Direction string
}{"Field1", "desc"}
sortQuery2 := struct {
fieldName string
direction string
FieldName string
Direction string
}{"Field2", "asc"}
records, err := table.GetRecords().