forked from enviPath/enviPy
Current Dev State
This commit is contained in:
22
static/js/ketcher2/node_modules/tap-mocha-reporter/lib/suite.js
generated
vendored
Normal file
22
static/js/ketcher2/node_modules/tap-mocha-reporter/lib/suite.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
// 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()
|
||||
}
|
||||
Reference in New Issue
Block a user