diff options
Diffstat (limited to 'web/test')
| -rw-r--r-- | web/test/protocol.test.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/test/protocol.test.ts b/web/test/protocol.test.ts new file mode 100644 index 0000000..c804d8b --- /dev/null +++ b/web/test/protocol.test.ts @@ -0,0 +1,8 @@ +import { describe, expect, it } from 'vitest'; +import { buildHello } from '$lib/protocol/connection'; + +describe('wire protocol', () => { + it('builds the hello handshake message', () => { + expect(buildHello()).toEqual({ t: 'hello', v: 1 }); + }); +}); |
