vendredi 29 avril 2016

QUnit testing with Skatejs elements

I'm using Skatejs for controlling event lifecycle. However, because of async loading, I'm having trouble with writing tests with QUnit.

setTimeout(function() {
     //assertions here
}, 5000);

I use setTimeout like above but then I got an issue with Expected at least one assertion, but none were run - call expect(0) to accept zero assertions.

What should I do in this case?

Aucun commentaire:

Enregistrer un commentaire