qm3ster
a978b26001
Use toStrictEqual for objects
...
Not sure why `jest-codemods` didn't do this.
Changed some primitives to use `toBe`.
2019-03-10 13:32:36 +01:00
qm3ster
df1825d65e
Use mockReturnValue instead of mockImplementation where possible
2019-03-10 13:32:36 +01:00
qm3ster
84a5277d45
Replace sinon with jest builtins
2019-03-10 13:32:36 +01:00
qm3ster
acbab01b7e
Apply jest-codemods
...
`chai` ELIMINATED
2019-03-10 13:32:36 +01:00
Mihal Malostanidis
bb6c226d55
Test improvements ( #1207 )
...
* Add missing `zcl-id` dependency
* Improve devicePublish test
Now passes in both mocha and jest
Each test now waits for all publishes, such as readbacks,
and asserts their number.
Replaced `calledOnce` and such with numeric assertion,
for a more informative error message.
* Use sinon default sandbox
* Take assert out of chai
Improves clutter, but also `jest-codemods` also makes use of this.
* Replace proxyquire with simple cache delete
* Reduce shared mutable state in settings.test
2019-03-08 16:56:53 +01:00
Koen Kanters
6427da244f
Implement attribute output. https://github.com/Koenkk/zigbee2mqtt/issues/493
2019-03-04 18:13:36 +01:00
Koen Kanters
c9c599b60b
Refactor publishDeviceState to publishEntityState (for future group support).
2019-02-04 18:36:49 +01:00
Laurent
7cd30a3a05
configurable last_seen ( #874 )
...
* configurable last_seen
* Refactor last_seen.
2019-01-18 20:31:55 +01:00
Gergely Markics
5d3461c4c6
Add the timestamp of last received zigbee message visible in HASS ( #739 )
...
* Add timestamp on receiving message from Zigbee
Add last_message to the payload
* Discovery on HASS restart and last_message attribute added
- On restarting Home Assistant, resending device discovery information
- Add timestamp on receiving message from Zigbee
* Add option: add_timestamp in settings
* Add option: add_timestamp in settings
* Add option: add_timestamp in settings
* typo
* Update homeassistant.js
* Update homeassistant.js
* Update homeassistant.js
* Update deviceReceive.js
* Update deviceReceive.js
* Update homeassistant.js
* Update settings.js
* Update deviceReceive.js
* Update deviceReceive.js
* Update deviceReceive.js
* Update deviceReceive.js
* Fix tests
* Fix lint
* Fix lint
2018-12-26 17:33:39 +01:00
Koenkk
65f23171e6
Update zigbee-shepherd-converters to 6.0.4
2018-12-06 21:27:41 +01:00
Koenkk
698b40554e
Improve tests.
2018-12-06 21:27:41 +01:00