Skip to content

Commit 1e9d5d5

Browse files
committed
Update protocol version
* Added types.test.ts - "should have correct latest protocol version" - "should have correct supported protocol versions"
1 parent 3a9a6c9 commit 1e9d5d5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/types.test.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)