catberry
Version:
Catberry is an isomorphic framework for building universal front-end apps using components, Flux architecture and progressive rendering.
23 lines (17 loc) • 381 B
JavaScript
;
const events = require('events');
const testUtils = require('../../utils');
class ComponentFinder extends events.EventEmitter {
constructor(components) {
super();
this._toFind = components;
}
find() {
return testUtils.wait(100).then(() => {
this._found = this._toFind;
return this._found;
});
}
watch() { }
}
module.exports = ComponentFinder;