Skip to content

Commit 9a26992

Browse files
Dan JonesDan Jones
authored andcommitted
Update unit tests to include sorts
1 parent 2ecccb1 commit 9a26992

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

src/query/agent.test.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,26 @@ it("search-only mode success: caches searches and sends on subsequent request",
118118
value: 0,
119119
},
120120
collection: "test_collection",
121+
sort_property: undefined,
122+
},
123+
{
124+
query: undefined,
125+
filters: {
126+
filter_type: "integer",
127+
property_name: "test_property",
128+
operator: ComparisonOperator.GreaterThan,
129+
value: 0,
130+
},
131+
collection: "test_collection",
132+
sort_property: {
133+
property_name: "test_property",
134+
order: "ascending",
135+
tie_break: {
136+
property_name: "test_property_2",
137+
order: "descending",
138+
tie_break: undefined,
139+
},
140+
},
121141
},
122142
],
123143
usage: {
@@ -202,6 +222,25 @@ it("search-only mode success: caches searches and sends on subsequent request",
202222
operator: ComparisonOperator.GreaterThan,
203223
value: 0,
204224
},
225+
sortProperty: undefined,
226+
},
227+
{
228+
collection: "test_collection",
229+
query: undefined,
230+
filters: {
231+
filterType: "integer",
232+
propertyName: "test_property",
233+
operator: ComparisonOperator.GreaterThan,
234+
value: 0,
235+
},
236+
sortProperty: {
237+
propertyName: "test_property",
238+
order: "ascending",
239+
tieBreak: {
240+
propertyName: "test_property_2",
241+
order: "descending",
242+
},
243+
},
205244
},
206245
],
207246
usage: {

0 commit comments

Comments
 (0)