Reputation: 346
I'm trying to run unit tests written in QUnit using jsTestDriver. I'm getting "ReferenceError: equal is not defined". Checking the source code shows that the adapter (Qunit->jsTestDriver) QUnitAdapter.js supports the equals method:
While Qunit does not support equals (renamed to equal last year).
Am I missing something here?
p.s. I'm using jsTestDriver which is integrated into WebStorm 4.
Upvotes: 0
Views: 533
Reputation: 1041
I assume that you are using the QUnitAdapter from the JsTestDriver website. Currently, the adapter on that site only supports a small subset of what QUnit is capable of, so you should use the far more up-to-date and mature QUnitAdapter found here. I wrote a post that shows how to integrate QUnit, Requirejs, and code coverage with JSTD: js-test-driver+qunit+coverage+requirejs. Hope it helps.
Upvotes: 2