Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wilmoore/node-supertest-koa-agent
Converts a Koa app into a supertest compatible agent instance.
https://github.com/wilmoore/node-supertest-koa-agent
agent koa nodejs supertest
Last synced: 3 months ago
JSON representation
Converts a Koa app into a supertest compatible agent instance.
- Host: GitHub
- URL: https://github.com/wilmoore/node-supertest-koa-agent
- Owner: wilmoore
- License: mit
- Created: 2015-05-04T07:16:01.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T21:58:25.000Z (about 2 years ago)
- Last Synced: 2024-11-01T07:07:14.750Z (3 months ago)
- Topics: agent, koa, nodejs, supertest
- Language: JavaScript
- Homepage:
- Size: 432 KB
- Stars: 15
- Watchers: 4
- Forks: 4
- Open Issues: 14
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Contributing: contributing.md
- License: license
Awesome Lists containing this project
README
# supertest-koa-agent
> Converts a Koa app into a supertest compatible agent instance.[![Build Status](http://img.shields.io/travis/wilmoore/node-supertest-koa-agent.svg)](https://travis-ci.org/wilmoore/node-supertest-koa-agent) [![Code Climate](https://codeclimate.com/github/wilmoore/node-supertest-koa-agent/badges/gpa.svg)](https://codeclimate.com/github/wilmoore/node-supertest-koa-agent) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
```shell
npm install supertest-koa-agent --save-dev
```###### npm stats
[![npm](https://img.shields.io/npm/v/supertest-koa-agent.svg)](https://www.npmjs.org/package/supertest-koa-agent) [![NPM downloads](http://img.shields.io/npm/dm/supertest-koa-agent.svg)](https://www.npmjs.org/package/supertest-koa-agent) [![Dependency Status](https://gemnasium.com/wilmoore/node-supertest-koa-agent.svg)](https://gemnasium.com/wilmoore/node-supertest-koa-agent)
## API Example
```js
var agent = require('supertest-koa-agent');
var Koa = require('koa')var app = new Koa()
agent(app)
```## API
### `agent(app)`
###### arguments
- `app: (Application)` Koa application instance.
###### returns
- `(Object)` Supertest agent instance.
## Contributing
> SEE: [contributing.md](contributing.md)
## Licenses
[![GitHub license](https://img.shields.io/github/license/wilmoore/node-supertest-koa-agent.svg)](https://github.com/wilmoore/node-supertest-koa-agent/blob/master/license)