maguey-chai
v0.3.4
Published
Simple database queries for Node.js
Downloads
2
Maintainers
Readme
Maguey Chai
Chai assertions & test helpers for Maguey.
chai.use(require('maguey-chai'));
query.raw('select 1').should.be.a.query('select 1');
query.raw('select ?', [1]).should.be.a.query('select ?', [1]);
adapter.should.have.executed('select 1');
adapter.should.have.executed('begin', 'select ?', [1], 'commit');
adapter.should.have.used.clients;
adapter.should.have.used.oneClient;
adapter.should.have.clientCount(1);
License
This project is distributed under the MIT license.