1
0
mirror of https://github.com/redis/node-redis.git synced 2025-12-09 21:21:11 +03:00
Files
node-redis/packages/client/lib/tests/test-scenario/negative-tests.e2e.ts
Pavel Pashov b97bbbe8c6 refactor(test): improve test scenario reliability and maintainability (#3077)
* 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>
2025-09-18 12:45:55 +03:00

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",
);
});
});