You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-12-09 21:21:11 +03:00
* refactor(test): improve test scenario reliability and maintainability * tests: add resp3 check test (#1) * test: refactor connection handoff tests with enhanced spy utility (#2) * test: add comprehensive push notification disabled scenarios (#3) * tests: add params config tests (#4) * tests: add feature enablement tests (#5) --------- Co-authored-by: Nikolay Karadzhov <nikolay.karadzhov@redis.com>
16 lines
369 B
TypeScript
16 lines
369 B
TypeScript
import assert from "assert";
|
|
import { createClient } from "../../..";
|
|
|
|
describe("Negative tests", () => {
|
|
it("should only be enabled with RESP3", () => {
|
|
assert.throws(
|
|
() =>
|
|
createClient({
|
|
RESP: 2,
|
|
maintPushNotifications: "enabled",
|
|
}),
|
|
"Error: Graceful Maintenance is only supported with RESP3",
|
|
);
|
|
});
|
|
});
|