We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a9a6c9 commit 1e9d5d5Copy full SHA for 1e9d5d5
src/types.test.ts
@@ -0,0 +1,17 @@
1
+import { LATEST_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS} from "./types.js";
2
+
3
+describe("Types", () => {
4
5
+ test("should have correct latest protocol version", () => {
6
+ expect(LATEST_PROTOCOL_VERSION).toBeDefined();
7
+ expect(LATEST_PROTOCOL_VERSION).toBe("2025-03-26");
8
+ });
9
+ test("should have correct supported protocol versions", () => {
10
+ expect(SUPPORTED_PROTOCOL_VERSIONS).toBeDefined();
11
+ expect(SUPPORTED_PROTOCOL_VERSIONS).toBeInstanceOf(Array);
12
+ expect(SUPPORTED_PROTOCOL_VERSIONS).toContain(LATEST_PROTOCOL_VERSION);
13
+ expect(SUPPORTED_PROTOCOL_VERSIONS).toContain("2024-11-05");
14
+ expect(SUPPORTED_PROTOCOL_VERSIONS).toContain("2024-10-07");
15
16
17
+});
0 commit comments