Home | History | Annotate | Download | only in mocha

Lines Matching full:globals

1468  *   - `globals` array of accepted globals
1699 * Ignore `globals` array or string.
1701 * @param {Array|String} globals
1706 Mocha.prototype.globals = function(globals){
1707 this.options.globals = (this.options.globals || []).concat(globals);
1832 if (options.globals) runner.globals(options.globals);
4461 * Whitelist these globals for this test run
4465 Runnable.prototype.globals = function(arr){
4586 * Non-enumerable globals.
4589 var globals = [
4640 this.globals(this.globalProps().concat(extraGlobals()));
4713 for (var i = 0; i < globals.length; ++i) {
4714 if (~utils.indexOf(props, globals[i])) continue;
4715 props.push(globals[i]);
4722 * Allow the given `arr` of globals.
4729 Runner.prototype.globals = function(arr){
4731 debug('globals %j', arr);
4746 var globals = this.globalProps();
4753 if(this.prevGlobalsLength == globals.length) return;
4754 this.prevGlobalsLength = globals.length;
4756 leaks = filterLeaks(ok, globals);
5233 * Filter leaks with the given globals flagged as `ok`.
5236 * @param {Array} globals
5241 function filterLeaks(ok, globals) {
5242 return filter(globals, function(key){
5267 * Array of globals dependent on the environment.
6535 mocha.globals('location');