Bug in the IDE?


#1

In the IDE, there are some functions which are provided by chair/mocha which are pulled up as being not defined. When I run tests (npm test in the console) everything passes - so they must be defined.

The project is https://glitch.com/edit/#!/gp-skill and the file test_gp_data_helper.js


#2

That’s JSLint complaining because it doesn’t see those functions defined anywhere. You can tell it they’re globals like this:

/* global describe */

#3

Thanks. It’s nice to have those red dots disappear.