How to use the event-emitter-grouped.prototype function in event-emitter-grouped

To help you get started, we’ve selected a few event-emitter-grouped examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bevry / kava / source / index.js View on Github external
}
		} 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
 */
github bevry / kava / source / index.js View on Github external
Object.getOwnPropertyNames(EventEmitterGrouped.prototype).forEach(function(
	key
) {
	Test.prototype[key] = Suite.prototype[key] =
		EventEmitterGrouped.prototype[key]
})

event-emitter-grouped

Emit events in serial or parallel with support for synchronous and asynchronous listeners

Artistic-2.0
Latest version published 11 months ago

Package Health Score

56 / 100
Full package analysis