mirror of
https://github.com/thangisme/notes.git
synced 2026-07-27 10:04:27 -04:00
Initial commit
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user