Alex2Node/test
David 58869d44c1 test: split the 1.5.2 suite into a harness and per-topic files
test/helpers/harness.js holds the aedes broker, the Alexa-side watcher, until() and the cleanups, plus directive(),
connected() and setup(), which the old file spelled out in each test. test/alex2node.test.js (194 lines, 8 tests)
becomes connection, discovery, directives, change-report and typings.

The 50-line round-trip test is cut at its topic boundaries and the duplicate-endpointId test no longer carries the
thermostat discovery check, so a failure names a case: 8 tests become 15, every 1.5.2 assertion kept. Four checks
are stricter: the "directive" event is compared whole, the StateReport is checked for its token and properties, the
Celsius conversion covers lowerSetpoint as well as temperature, and a duplicate endpointId is listed once.

No change to src/ or dist/. npm test: 15 pass in 0.9 s.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 13:45:38 +00:00
..
helpers test: split the 1.5.2 suite into a harness and per-topic files 2026-09-28 13:45:38 +00:00
change-report.test.js test: split the 1.5.2 suite into a harness and per-topic files 2026-09-28 13:45:38 +00:00
connection.test.js test: split the 1.5.2 suite into a harness and per-topic files 2026-09-28 13:45:38 +00:00
directives.test.js test: split the 1.5.2 suite into a harness and per-topic files 2026-09-28 13:45:38 +00:00
discovery.test.js test: split the 1.5.2 suite into a harness and per-topic files 2026-09-28 13:45:38 +00:00
typings.test.js test: split the 1.5.2 suite into a harness and per-topic files 2026-09-28 13:45:38 +00:00