1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

convert "resp types" to interfaces to allow circular references

This commit is contained in:
Leibale
2023-07-13 13:42:59 -04:00
parent 54c3a66c72
commit a3e813d3ac
41 changed files with 522 additions and 428 deletions

View File

@@ -25,19 +25,21 @@ describe('FUNCTION LIST', () => {
});
testUtils.testWithClient('client.functionList', async client => {
await loadMathFunction(client);
const [, reply] = await Promise.all([
loadMathFunction(client),
client.functionList()
]);
assert.deepEqual(
await client.functionList(),
[{
library_name: MATH_FUNCTION.name,
engine: MATH_FUNCTION.engine,
functions: [{
name: MATH_FUNCTION.library.square.NAME,
description: null,
flags: ['no-writes']
}]
reply[0].library_name;
assert.deepEqual(reply, [{
library_name: MATH_FUNCTION.name,
engine: MATH_FUNCTION.engine,
functions: [{
name: MATH_FUNCTION.library.square.NAME,
description: null,
flags: ['no-writes']
}]
);
}]);
}, GLOBAL.SERVERS.OPEN);
});