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
*/
ambi = require('ambi');
TaskGroup = require('taskgroup').TaskGroup;
safefs = require('safefs');
safeps = require('safeps');
util = require('util');
superAgent = require('superagent');
extractOptsAndCallback = require('extract-opts').extractOptsAndCallback;
EventEmitterGrouped = require('event-emitter-grouped').EventEmitterGrouped;
_ref = require('./base'), queryEngine = _ref.queryEngine, Backbone = _ref.Backbone, Events = _ref.Events, Model = _ref.Model, Collection = _ref.Collection, View = _ref.View, QueryCollection = _ref.QueryCollection;
FileModel = require('./models/file');
DocumentModel = require('./models/document');
FilesCollection = require('./collections/files');
ElementsCollection = require('./collections/elements');
MetaCollection = require('./collections/meta');
ScriptsCollection = require('./collections/scripts');
StylesCollection = require('./collections/styles');
ambi = require('ambi');
TaskGroup = require('taskgroup').TaskGroup;
safefs = require('safefs');
safeps = require('safeps');
util = require('util');
superAgent = require('superagent');
extractOptsAndCallback = require('extract-opts').extractOptsAndCallback;
EventEmitterGrouped = require('event-emitter-grouped').EventEmitterGrouped;
_ref = require('./base'), queryEngine = _ref.queryEngine, Backbone = _ref.Backbone, Events = _ref.Events, Model = _ref.Model, Collection = _ref.Collection, View = _ref.View, QueryCollection = _ref.QueryCollection;
FileModel = require('./models/file');
DocumentModel = require('./models/document');
FilesCollection = require('./collections/files');
ElementsCollection = require('./collections/elements');
MetaCollection = require('./collections/meta');
ScriptsCollection = require('./collections/scripts');
StylesCollection = require('./collections/styles');
Object.getOwnPropertyNames(EventEmitterGrouped.prototype).forEach(function(
key
) {
Test.prototype[key] = Suite.prototype[key] =
EventEmitterGrouped.prototype[key]
})