On Thu, Dec 3, 2015 at 12:35 PM, Tom Hughes <[email protected]> wrote:

> So you can do it with node-qunit... But it's a bit fiddly...
>
> npm install qunit
>
> then:
>
> node_modules/qunit/bin/cli.js -c jschardet:./index.js -t
> ./tests/jschardet.js
>
> except you also have to change module to QUnit.module (because module is
> reserved in node) and equals to equal (because this is a newer qunit
> version) in the tests.
>


Wow, not sure I would have figured that out on my own.  I got as far as
packaging up the dependencies for qunit, but there's obviously something
wrong in my qunit package because it was giving me a different error.  When
I use the qunit installed by npm, the tests run, but I get five failing
tests.   :-(

--
Jared Smith
_______________________________________________
nodejs mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]

Reply via email to