With this in mind, I have created a QUnit framework for thorsent. It's easy to get started. All you need is a JS file, a CSS file, and two particular div elements on a test page and you're well on your way. The QUnit API documentation and cookbook do a good job of laying out and explaining everything else you can do from there. As you can see below, I've written my first test which covers a toggle function for the mobile navigation drawer.