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