run: function(suites, browsers) { var _this = this, anyTest = _.identity.bind(null, true); return this.emitAndWait(RunnerEvents.RUNNER_START) .then(function() { return _this._runTestSession(suites, browsers, anyTest); }) .finally(function() { return _this.emitAndWait(RunnerEvents.RUNNER_END) .catch(logger.warn); }); },
id : 'mockedConnection', }; export const spec = _.defaultsDeep({ replace : [ { client : { acquireConnection() { return { completed : connection, abort : _.noop, }; }, acquireRawConnection : Promise.method(_.identity.bind(_, { completed : connection, abort : _.noop, })), releaseConnection : Promise.method(_.noop), }, }, ], define : defineConnection(connection), }, definition); export default { mock(db) { return transformer.transform(db, spec); },