npm.io
1.0.2 • Published 7 years ago

koa-create-context

Licence
MIT
Version
1.0.2
Deps
2
Size
5 kB
Vulns
0
Weekly
0
Stars
3

koa-create-context

Create a context for mocking or whatever purpose.

Installation

yarn

Usage

import createContext from "koa-create-context";

const context = createContext({
  status: 201,
  body: { data: "Hello World!" }
});

API

createContext(options)
Options