MCPcopy Create free account
hub / github.com/unconed/TermKit / testHandshake

Function testHandshake

Node/test.js:95–113  ·  view source on GitHub ↗

* Test termkit handshake.

(assert)

Source from the content-addressed store, hash-verified

93 * Test termkit handshake.
94 */
95function testHandshake(assert) {
96 mockClient([
97 {},
98 ], function (messages, success) {
99 assert(messages.length == 1 && messages[0].termkit == "1" && true, "TermKit handshake found.");
100 });
101
102 mockClient([
103 { termkit: ".", },
104 ], function (messages, success) {
105 assert(!success, "Invalid version string is rejected.");
106 });
107
108 mockClient([
109 { termkit: "1", },
110 ], function (messages, success) {
111 assert(success, "Valid version string is accepted.");
112 });
113}
114
115/**
116 * Test session/shell handling.

Callers

nothing calls this directly

Calls 2

mockClientFunction · 0.85
assertFunction · 0.85

Tested by

no test coverage detected