Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
} else if (report) {
++Private.totalPassedTests
}
if (error || report) {
Public.report('finishTest', test, error)
}
}
}
// =================================
// Event Emitter Grouped
// Add event emitter grouped to our classes
Object.getOwnPropertyNames(EventEmitterGrouped.prototype).forEach(function(
key
) {
Test.prototype[key] = Suite.prototype[key] =
EventEmitterGrouped.prototype[key]
})
// =================================
// Private Interface
/**
* Kava's Private Interface.
* The reason we have a public and private interface is that we do not want tests being able to modify the test results.
* As such, the private interface contains properties that must be mutable by the public interface, but not mutable by the bad tests.
* @private
* @namespace
*/
Object.getOwnPropertyNames(EventEmitterGrouped.prototype).forEach(function(
key
) {
Test.prototype[key] = Suite.prototype[key] =
EventEmitterGrouped.prototype[key]
})