ioBroker/testing

objects mock no longer necessary

Closed this issue · 2 comments

Due to ioBroker/ioBroker.js-controller#359 we want to prevent devs from using adapter.objects and adapter.states thus we should remove providing the functionality of mocking objects https://github.com/ioBroker/testing/blob/master/src/tests/unit/mocks/mockObjects.ts

Furthermore, the two pre-implemented methods https://github.com/ioBroker/testing/blob/master/src/tests/unit/mocks/mockObjects.ts#L22 are now part of the adapter class itself.

Thus, the two methods should be provided in this module and the objects mock should be removed.

Please test "testing": "ioBroker/testing#master" in your adapter.

Should be fixed in 84ba2ad

Confirmed.