1
0
mirror of https://github.com/redis/node-redis.git synced 2025-12-11 09:22:35 +03:00
Files
node-redis/packages/client/lib/tests/test-scenario/negative-tests.e2e.ts
Nikolay Karadzhov adb19c5c5f tests: Adjust scenario tests according to latest maint naming changes (#3090)
* rename maint options according to the latest client options
* adjust env variables
cae repo uses RE_FAULT_INJECTOR_URL for fault injector
DATABASE_NAME is needed to choose from the many databases in cae
* fix connection cleanup test
2025-10-06 18:30:18 +03:00

16 lines
365 B
TypeScript

import assert from "assert";
import { createClient } from "../../..";
describe("Negative tests", () => {
it("should only be enabled with RESP3", () => {
assert.throws(
() =>
createClient({
RESP: 2,
maintNotifications: "enabled",
}),
"Error: Graceful Maintenance is only supported with RESP3",
);
});
});