add notes

This commit is contained in:
David Ventura
2024-05-03 23:07:51 +02:00
parent 21189a8ae9
commit b59c77729c
+8 -4
View File
@@ -7,11 +7,8 @@ import assert from "assert";
const hstrToU8 = (hs) => new Uint8Array(hs.match(/../g).map((h) => parseInt(h, 16))); const hstrToU8 = (hs) => new Uint8Array(hs.match(/../g).map((h) => parseInt(h, 16)));
describe("integration", () => { describe("integration", () => {
it("emits login event upon logging in", () => {
// TODO
});
it("discovers a device", () => { it("discovers a device", () => {
// LanSearch (server) -> PunchPkt (camera) -> discovered serial
buildLogger("trace"); buildLogger("trace");
const EXPECTED_SERIAL = "BATD156362WONJM"; const EXPECTED_SERIAL = "BATD156362WONJM";
const punchPkt = "f14100144241544400000000000262ca574f4e4a4d000000"; const punchPkt = "f14100144241544400000000000262ca574f4e4a4d000000";
@@ -30,4 +27,11 @@ describe("integration", () => {
mockSock.close(); 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<Login> (server) -> [DrwAck, Drw<LoginAck>]
});
}); });