How to use the fusion-core.compose function in fusion-core

To help you get started, we’ve selected a few fusion-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fusionjs / fusionjs / fusion-test-utils / src / simulate.js View on Github external
export default function simulate(app: FusionApp, ctx: Context): Promise<*> {
  return compose(app.plugins)(ctx, () => Promise.resolve()).then(() => ctx);
}