Re: [nodejs] describe is not defined

2013-08-25 Thread Ryan Schmidt
On Aug 25, 2013, at 15:50, 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 in

[nodejs] describe is not defined

2013-08-25 Thread Daniel Rosales
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 we

Re: [nodejs] describe is not defined

2012-12-25 Thread greelgorke
you need a describe in it to mark it as a test. mocha doesn't simply 'require' your test files Am Dienstag, 25. Dezember 2012 09:29:20 UTC+1 schrieb Artur Vinogradov: > > Thank you, Martin. I solved my problems, but there's another question: > everything seems to work, test are running, but whe

Re: [nodejs] describe is not defined

2012-12-25 Thread Artur Vinogradov
Thank you, Martin. I solved my problems, but there's another question: everything seems to work, test are running, but when i try to implement http.get logic - it doesn't work. the code var http = require('http'); http.get("http://www.google.com/index.html";, function(res) { console.log("Got r

Re: [nodejs] describe is not defined

2012-12-24 Thread Martin Cooper
On Mon, Dec 24, 2012 at 12:18 AM, Artur Vinogradov wrote: > I installed mocha with -g parameter, though it's not been working for me > with other modules: I always had to link them, so that i can require them. > It looks like you're not starting mocha properly. You shouldn't have that require of

[nodejs] describe is not defined

2012-12-24 Thread Artur Vinogradov
I installed mocha with -g parameter, though it's not been working for me with other modules: I always had to link them, so that i can require them. This is my code: var Mocha = require('mocha'); var assert = require("assert") describe('Array', function(){ describe('#indexOf()', function(){