forked from Blendman974/faceclaw
Add proximity-based pairing for Even devices
Stream BLE advertisements into a dedicated pairing flow with arm, ring, serial, and hardware variant detection. Add proximity ranking, device artwork, pairing safeguards, and unit coverage for discovery and candidate grouping.
This commit is contained in:
35 files changed
+3309
-140
No files matched your search
@@ -0,0 +1,17 @@
|
||||
# Tests
|
||||
|
||||
Faceclaw's pairing logic (`app/g2/glasses-hardware-identity.ts`,
|
||||
`ble-proximity.ts`, `even-advertisement.ts`, `pairing-candidates.ts`,
|
||||
`glasses-artwork.ts`) is written without NativeScript imports so it can run
|
||||
under plain node. The tests here are ports of SybilSight's
|
||||
`GlassesHardwareIdentityTests` / `BLEProximityTests` plus coverage for the
|
||||
advertisement parsers and left↔right pair grouping.
|
||||
|
||||
Run with:
|
||||
|
||||
npm test
|
||||
|
||||
That compiles the pure modules with the project's TypeScript into
|
||||
`.test-build/` (git-ignored) and runs `node --test tests/`. No extra
|
||||
dependencies are needed — the tests are plain `.test.cjs` files that use
|
||||
`node:test` and `node:assert`.
|
||||
Reference in new issue
Block a user