You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
increase pushGeoCountArgument test coverage
This commit is contained in:
@@ -320,21 +320,32 @@ describe('Generic Transformers', () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('with COUNT', () => {
|
describe('with COUNT', () => {
|
||||||
assert.deepEqual(
|
it('number', () => {
|
||||||
pushGeoCountArgument([], 1),
|
assert.deepEqual(
|
||||||
['COUNT', '1']
|
pushGeoCountArgument([], 1),
|
||||||
);
|
['COUNT', '1']
|
||||||
});
|
);
|
||||||
|
});
|
||||||
|
|
||||||
it('with ANY', () => {
|
describe('object', () => {
|
||||||
assert.deepEqual(
|
it('value', () => {
|
||||||
pushGeoCountArgument([], {
|
assert.deepEqual(
|
||||||
value: 1,
|
pushGeoCountArgument([], { value: 1 }),
|
||||||
ANY: true
|
['COUNT', '1']
|
||||||
}),
|
);
|
||||||
['COUNT', '1', 'ANY']
|
});
|
||||||
);
|
|
||||||
|
it('value, ANY', () => {
|
||||||
|
assert.deepEqual(
|
||||||
|
pushGeoCountArgument([], {
|
||||||
|
value: 1,
|
||||||
|
ANY: true
|
||||||
|
}),
|
||||||
|
['COUNT', '1', 'ANY']
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user