Skip to content

Commit bc1bf7e

Browse files
committed
increase pushGeoCountArgument test coverage
1 parent f2d46c8 commit bc1bf7e

File tree

1 file changed

+26
-15
lines changed

1 file changed

+26
-15
lines changed

packages/client/lib/commands/generic-transformers.spec.ts

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -320,21 +320,32 @@ describe('Generic Transformers', () => {
320320
);
321321
});
322322

323-
it('with COUNT', () => {
324-
assert.deepEqual(
325-
pushGeoCountArgument([], 1),
326-
['COUNT', '1']
327-
);
328-
});
329-
330-
it('with ANY', () => {
331-
assert.deepEqual(
332-
pushGeoCountArgument([], {
333-
value: 1,
334-
ANY: true
335-
}),
336-
['COUNT', '1', 'ANY']
337-
);
323+
describe('with COUNT', () => {
324+
it('number', () => {
325+
assert.deepEqual(
326+
pushGeoCountArgument([], 1),
327+
['COUNT', '1']
328+
);
329+
});
330+
331+
describe('object', () => {
332+
it('value', () => {
333+
assert.deepEqual(
334+
pushGeoCountArgument([], { value: 1 }),
335+
['COUNT', '1']
336+
);
337+
});
338+
339+
it('value, ANY', () => {
340+
assert.deepEqual(
341+
pushGeoCountArgument([], {
342+
value: 1,
343+
ANY: true
344+
}),
345+
['COUNT', '1', 'ANY']
346+
);
347+
});
348+
});
338349
});
339350
});
340351

0 commit comments

Comments
 (0)