Skip to content

Commit 970c0f4

Browse files
committed
Add additional assertions to existing tests
Ensure that the addAggregation function works correctly with an additional assertion check.
1 parent 256a4d8 commit 970c0f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/query.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ describe('Query', () => {
6969
const aggregate2 = new AggregateQuery(query)
7070
.count('total')
7171
.count('total2');
72+
const aggregate3 = new AggregateQuery(query)
73+
.addAggregation(firstAggregation)
74+
.addAggregation(secondAggregation);
7275
assert.deepStrictEqual(aggregate.aggregations, aggregate2.aggregations);
76+
assert.deepStrictEqual(aggregate.aggregations, aggregate3.aggregations);
7377
assert.deepStrictEqual(aggregate.aggregations, [
7478
firstAggregation,
7579
secondAggregation,

0 commit comments

Comments
 (0)