* Test termkit handshake.
(assert)
| 93 | * Test termkit handshake. |
| 94 | */ |
| 95 | function 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. |
nothing calls this directly
no test coverage detected