Node js "ReferenceError: elements is not defined"

378 views
Skip to first unread message

seamusjr

unread,
Jun 18, 2010, 3:54:28 PM6/18/10
to jspec
Trying to run my tests via node/spec/node.js. Installed node, plus
dependencies via homebrew and am running the latest JSpec 4.3.2.

I am using JQuery and in my spec am using "elements" as a stand in
for factory function ($). Not sure of what I need to change to get it
to recognize 'elements'. Here is the error:

node spec/node.js

ReferenceError: elements is not defined
at Object.<anonymous> (eval at <anonymous> (spec/lib/jspec.js:
1456:54))
at Object.evalBody (spec/lib/jspec.js:1456:54)
at spec/lib/jspec.js:482:19
at spec/lib/jspec.js:1205:38
at spec/lib/jspec.js:1234:12
at [object Object].hook (spec/lib/jspec.js:481:26)
at spec/lib/jspec.js:1549:16
at spec/lib/jspec.js:1205:38
at spec/lib/jspec.js:1234:12
at Object.runSuite (spec/lib/jspec.js:1547:18)
Reply all
Reply to author
Forward
0 new messages