Open titaniumbones opened 5 years ago
Committed much of this for som problems. Early problems still use cherio, would be nice to lose the dependency.
I'm running into some problems with this; it's not easy to get into the internals of the jquery object. For instance, this test fails because object [0] doesn't seem to exist:
expect($('header div.senderinfo p a')[0].attribs.href, 'href').to.include('mailto:') ;
This would also close #22 #21 and #20.
It's possible to load the page asynchronously in jsdom & then add jquery. This allows the querying of computed css values.
Here is some code that works:
tests then become generally more reliable.
working on this in another branch.