Unit testing with mocha,sinon,chai , jsdom.
When I unit test Backbone Views, I get the error $el.toolTip is not a function.
toolTip is actually defined in bootstrap.js file.
I am not sure whether I have to load bootstrap in nodejs env. (since the tests run in nodejs).
How to load the bootstrap file in nodejs env or in jsdom?
Can someone help here?
Aucun commentaire:
Enregistrer un commentaire