You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the tests you define inside defineAdditionalTests, you need to add your own before[Each] handler to populate the DBs, see documentation:
// Define your own tests inside defineAdditionalTests. // If you need predefined objects etc. here, you need to take care of it yourselfdefineAdditionalTests(){// ...},
But I think that is not what you want. You want to perform the adapter startup and then assert certain things, correct?
I would need to add another hook to the startup test then. Before I do, I want to make sure that is what you need.
Yes. I want sync object from config with iobroker database during adapter is starting. As admin I can remove some object or add in config via index_m.html page, and then I want remove or add objects in iobroker database accoring my config
Hi,
I want to check my code for correct remove object from iobroker database. I have following preset objects:
In main.js I do nothing and then I try to check exits object in database:
const result = database.hasObject('noolitef.0.badlamp');
The 'result' is false. I think that object 'noolitef.0.badlamp' must be exists and 'result' must be 'true'
The text was updated successfully, but these errors were encountered: