Sun calculation js library which is fully based on formula from http://aa.quae.nl/en/reken/zonpositie.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

22 lines
478 B

// 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()
}