Try running:
mocha test1.js

On Monday, August 26, 2013 2:20:09 AM UTC+5:30, Daniel Rosales wrote:
>
> An earlier post by Artur on 12/24/12 he posted a question to this group 
> about "describe is not defined". He did not provide the details about "how" 
> he solved his problem. I am on a windows 7 home premium machine. At the 
> command-promt I install mocha globally just like the instructions on the 
> web page at section 1.2.3. I create the same test...When I type mocha, I 
> get the 0 passed message. When I debug with the command of node .load 
> test1.js I get the error message about "describe is not defined"
> --
> C:\MochaTests>node
> > .load test1.js
> > var assert = require("assert")
> undefined
> > describe ('Array', function() {
> ...     describe('#indexOf()', function() {
> .....           it('should return -1 when the value is not present', 
> function() {
> .......                         assert.equal(-1, [1,2,3].indexOf(5));
> .......                         assert.equal(-1, [1,2,3].indexOf(0));
> .......                                         })
> .....                           })
> ...                     })
> ReferenceError: describe is not defined
>     at repl:1:2
>     at REPLServer.self.eval (repl.js:110:21)
>     at Interface.<anonymous> (repl.js:239:12)
>     at Interface.EventEmitter.emit (events.js:95:17)
>     at Interface._onLine (readline.js:202:10)
>     at Interface._line (readline.js:531:8)
>     at Interface._ttyWrite (readline.js:814:20)
>     at Interface.write (readline.js:294:24)
>     at repl.js:853:24
>     at Array.forEach (native)
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
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 post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
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 nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to