Files
faceclaw/tests
..
2026-09-18 22:48:20 -07:00
2026-09-19 01:37:36 -07:00
2026-09-19 00:48:26 -07:00
2026-09-19 01:37:36 -07:00
2026-09-18 23:30:07 -07:00
2026-09-18 23:30:07 -07:00
2026-09-19 02:55:13 -07:00
2026-09-18 23:30:07 -07:00
2026-09-19 01:37:36 -07:00
2026-09-19 01:37:36 -07:00
2026-09-18 23:16:22 -07:00
2026-09-12 23:50:23 -07:00
2026-09-18 22:48:20 -07:00
2026-09-04 02:23:58 -07:00

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 cover hardware-identity decoding, proximity estimation, 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.

The shared Kotlin suite runs separately from the Node tests:

npm run test:kotlin
npm run test:kotlin:ios

It includes the migrated compass, R1 battery, gesture and texture Java fixtures, which now call the Kotlin implementation from Android host tests. Common tests also run as native iOS simulator binaries. See the Kotlin README for SDK requirements, source layout and coverage. The compass and battery fixtures retain the golden packets shared with firmware tests.