How to use the prototype function from mocha

Find comprehensive JavaScript mocha.prototype code examples handpicked from public code repositorys.

5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
  throw err;
};


/**
 * Override ui to ensure that the ui functions are initialized.
 * Normally this would happen in Mocha.prototype.loadFiles.
 */


mocha.ui = function(ui){
  Mocha.prototype.ui.call(this, ui);
fork icon2
star icon2
watch icon0

+ 20 other calls in file

6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
var query = Mocha.utils.parseQuery(global.location.search || '');
if (query.grep) mocha.grep(new RegExp(query.grep));
if (query.fgrep) mocha.grep(query.fgrep);
if (query.invert) mocha.invert();

return Mocha.prototype.run.call(mocha, function(err){
  // The DOM Document is not available in Web Workers.
  var document = global.document;
  if (document && document.getElementById('mocha') && options.noHighlighting !== true) {
    Mocha.utils.highlightTags('code');
fork icon1
star icon0
watch icon0

+ 2 other calls in file