Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nescalante/rodo-chai
chai assertions for rodo
https://github.com/nescalante/rodo-chai
Last synced: 20 days ago
JSON representation
chai assertions for rodo
- Host: GitHub
- URL: https://github.com/nescalante/rodo-chai
- Owner: nescalante
- License: mit
- Created: 2016-10-12T16:08:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-21T22:16:54.000Z (about 5 years ago)
- Last Synced: 2024-11-14T15:49:38.048Z (about 1 month ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: Readme.md
- License: License
Awesome Lists containing this project
README
# rodo assertions for Chai [![Greenkeeper badge](https://badges.greenkeeper.io/nescalante/rodo-chai.svg)](https://greenkeeper.io/)
> Chai assertions for [rodo](https://www.github.com/nescalante/rodo)
## Install
```
npm install rodo-chai
```## Setup
```js
const chai = require('chai')
const rodoChai = require('rodo-chai')chai.use(rodoChai)
```## Usage
In your test suite:
```js
const mock = rodo(urlObject.port)
const myCall = mock
.get('/api/endpoint')
.reply({ foo: 'bar' })artifactsCall.should.have.been.invokedOnce
```## License
MIT