'use strict'; const RSVP = require('rsvp'); const EventEmitter = require('events').EventEmitter; const path = require('path'); class MockExpressServer extends EventEmitter { then() { let promise = RSVP.resolve({ directory: path.resolve(__dirname, '../fixtures/express-server'), }); return promise.then.apply(promise, arguments); } } module.exports = MockExpressServer;