Chai assertions for rodo
npm install rodo-chai
const chai = require('chai')
const rodoChai = require('rodo-chai')
chai.use(rodoChai)
In your test suite:
const mock = rodo(urlObject.port)
const myCall = mock
.get('/api/endpoint')
.reply({ foo: 'bar' })
artifactsCall.should.have.been.invokedOnce
MIT