0.0.12 • Published 5 years ago
thing-it-device-test v0.0.12
thing-it-device-test
thing-it-node Test Device Plugin for complex tests on thing-it-node
The components
- testDevice
- testActor
- testSensor
can be used as regular thing-it-node components, but also accessed centrally to drive behavior in a test suite, e.g.
var componentManager = require("../testDevice");
componentManager.getDevice('testDevice1');
componentManager.getActor('testDevice1', 'testActor1').on();
componentManager.getSensor('testDevice1', 'testSensor1').pushEvent({'click'});
which allows you to regression test thing-it-node configurations.