From b59c77729ca3faef3bed3e28b1f585f376d30ea5 Mon Sep 17 00:00:00 2001 From: David Ventura Date: Fri, 3 May 2024 23:07:51 +0200 Subject: [PATCH] add notes --- tests/integration.test.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/integration.test.js b/tests/integration.test.js index ab13df3..5fb4a70 100644 --- a/tests/integration.test.js +++ b/tests/integration.test.js @@ -7,11 +7,8 @@ import assert from "assert"; const hstrToU8 = (hs) => new Uint8Array(hs.match(/../g).map((h) => parseInt(h, 16))); describe("integration", () => { - it("emits login event upon logging in", () => { - // TODO - }); - it("discovers a device", () => { + // LanSearch (server) -> PunchPkt (camera) -> discovered serial buildLogger("trace"); const EXPECTED_SERIAL = "BATD156362WONJM"; const punchPkt = "f14100144241544400000000000262ca574f4e4a4d000000"; @@ -30,4 +27,11 @@ describe("integration", () => { mockSock.close(); }); }); + // TODO + it("emits login event upon logging in", () => { + // LanSearch (server) -> PunchPkt (camera) + // vvv need to call makeSession vvv + // P2pRdy (server) -> P2pRdy (camera) + // Drw (server) -> [DrwAck, Drw] + }); });