ember-cli
Version:
Command line tool for developing ambitious ember.js apps
24 lines (18 loc) • 563 B
JavaScript
;
const RSVP = require('rsvp');
const EventEmitter = require('events').EventEmitter;
const path = require('path');
function MockWatcher() {
EventEmitter.apply(this, arguments);
this.tracks = [];
this.trackTimings = [];
this.trackErrors = [];
}
module.exports = MockWatcher;
MockWatcher.prototype = Object.create(EventEmitter.prototype);
MockWatcher.prototype.then = function() {
let promise = RSVP.resolve({
directory: path.resolve(__dirname, '../fixtures/express-server'),
});
return promise.then.apply(promise, arguments);
};