How to test with Mocha changes in HTML?

Good afternoon, prompt please. I understand how to test with Mocha a javascript function which something returns, but how can I test functions that do some changes in the DOM tree. I can assume, based on the read information, you need to use JSDOM. I would be grateful for any more or less like a practical example or any information.
April 4th 20 at 00:35
1 answer

Find more questions by tags JavaScriptDevelopment through testing