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] + }); });