1
0
mirror of https://github.com/thangisme/notes.git synced 2024-06-20 23:15:30 +00:00
notes/node_modules/pipetteur/test/errors.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

22 lines
531 B
JavaScript

var expect = require('unexpected');
var pipetteur = require('../pipetteur');
describe('Error handling', function () {
it('should throw on invalid input', function (done) {
var types = [
undefined,
null,
true,
0,
[],
{},
function () { return; }
];
expect(types, 'to be an array whose items satisfy', function (type) {
expect(pipetteur.bind(null, type), 'to throw');
});
done();
});
});