Test ws adapter handling of hello prelude messages
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
d4bd385419
commit
0cf6572336
1 file changed
+7
@@ -103,6 +103,13 @@ describe("wsNativeApi", () => {
|
||||
expect(requestEnvelope.type).toBe("request");
|
||||
expect(requestEnvelope.method).toBe("todos.list");
|
||||
|
||||
socket?.emitMessage(
|
||||
JSON.stringify({
|
||||
type: "hello",
|
||||
version: 1,
|
||||
launchCwd: "/workspace",
|
||||
}),
|
||||
);
|
||||
socket?.emitMessage(
|
||||
JSON.stringify({
|
||||
type: "response",
|
||||
|
||||
Reference in new issue
Block a user