UNPKG

catberry

Version:

Catberry is an isomorphic framework for building universal front-end apps using components, Flux architecture and progressive rendering.

23 lines (17 loc) 365 B
'use strict'; const events = require('events'); const testUtils = require('../../utils'); class StoreFinder extends events.EventEmitter { constructor(stores) { super(); this._toFind = stores; } find() { return testUtils.wait(100).then(() => { this._found = this._toFind; return this._found; }); } watch() { } } module.exports = StoreFinder;