%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/usr/share/nodejs/tap-mocha-reporter/lib/
Upload File :
Create Path :
Current File : //proc/self/root/usr/share/nodejs/tap-mocha-reporter/lib/suite.js

// minimal mock of mocha's Suite class for formatters

module.exports = Suite

function Suite (parent) {
  if (!parent.parent || !parent.parent.emittedSuite)
    this.root = true
  else
    this.root = false

  this.title = parent.name || ''
  this.suites = []
  this.tests = []
  this.ok = true
}

Suite.prototype.fullTitle = function () {
  if (!this.parent)
    return (this.title || '').trim()
  else
    return (this.parent.fullTitle() + ' ' + (this.title || '')).trim()
}

Zerion Mini Shell 1.0