Reza,

Sorry, I just now noticed "JSTestDriver" in the subject. JSTestDriver is 
intended for browser javascript, not node javascript -- so your code either 
needs to not have any requires in it, or if it's built for node you need to 
"browserify" it before testing it, or if it's built for a browser-side 
require like RequireJS, you'll need to include that library with your tests 
(how exactly to do that with JSTestDriver is a question for their mailing 
list (https://groups.google.com/forum/#!forum/js-test-driver).

If you're trying to test node javascript, I would recommend switching from 
JSTestDriver to something focused on node, like mocha.

-- peter

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/60b21020-4135-4746-9061-140ee7724635%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to