You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
convert "resp types" to interfaces to allow circular references
This commit is contained in:
@@ -25,20 +25,24 @@ describe('FUNCTION LIST WITHCODE', () => {
|
||||
});
|
||||
|
||||
testUtils.testWithClient('client.functionListWithCode', async client => {
|
||||
await loadMathFunction(client);
|
||||
const [, reply] = await Promise.all([
|
||||
loadMathFunction(client),
|
||||
client.functionListWithCode()
|
||||
]);
|
||||
|
||||
const a = reply[0];
|
||||
|
||||
const b = a.functions[0].description;
|
||||
|
||||
assert.deepEqual(
|
||||
await client.functionListWithCode(),
|
||||
[{
|
||||
library_name: MATH_FUNCTION.name,
|
||||
engine: MATH_FUNCTION.engine,
|
||||
functions: [{
|
||||
name: MATH_FUNCTION.library.square.NAME,
|
||||
description: null,
|
||||
flags: ['no-writes']
|
||||
}],
|
||||
library_code: MATH_FUNCTION.code
|
||||
}]
|
||||
);
|
||||
assert.deepEqual(reply, [{
|
||||
library_name: MATH_FUNCTION.name,
|
||||
engine: MATH_FUNCTION.engine,
|
||||
functions: [{
|
||||
name: MATH_FUNCTION.library.square.NAME,
|
||||
description: null,
|
||||
flags: ['no-writes']
|
||||
}],
|
||||
library_code: MATH_FUNCTION.code
|
||||
}]);
|
||||
}, GLOBAL.SERVERS.OPEN);
|
||||
});
|
||||
|
Reference in New Issue
Block a user