Add snapshot testing.

This commit is contained in:
zkldi
2022-04-13 16:31:55 +01:00
parent a696cc61fd
commit de6fe2ebe3
7 changed files with 74 additions and 6 deletions
+9 -1
View File
@@ -35,5 +35,13 @@ RedisClient.on("connect", () => {
});
export function CloseRedisConnection() {
return RedisClient.quit();
return new Promise((resolve, reject) =>
RedisClient.quit((err, reply) => {
if (err) {
reject(err);
} else {
resolve(reply);
}
})
);
}