1.0.2 • Published 6 years ago
koa-create-context v1.0.2
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!" }
});