UNPKG

catberry

Version:

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

14 lines (10 loc) 228 B
'use strict'; const testUtils = require('../../utils'); class AsyncErrorComponent { render() { return testUtils.wait(1).then(() => { throw new Error(this.$context.name); }); } } module.exports = AsyncErrorComponent;