Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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