Skip to content

Commit 953fb9a

Browse files
authored
tests: add resp3 check test (#1)
1 parent 98da3e5 commit 953fb9a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import assert from "assert";
2+
import { createClient } from "../../..";
3+
4+
describe("Negative tests", () => {
5+
it("should only be enabled with RESP3", () => {
6+
assert.throws(
7+
() =>
8+
createClient({
9+
RESP: 2,
10+
maintPushNotifications: "enabled",
11+
}),
12+
"Error: Graceful Maintenance is only supported with RESP3",
13+
);
14+
});
15+
});

0 commit comments

Comments
 (0)