X-Git-Url: http://git.squeep.com/?p=squeep-indie-auther;a=blobdiff_plain;f=test%2Fsrc%2Ferrors.js;fp=test%2Fsrc%2Ferrors.js;h=509f3b171ef8e2daaf4aeab435b8156a02a15d00;hp=0000000000000000000000000000000000000000;hb=b0103b0d496262c438b40bc20304081dbfe41e73;hpb=8ed81748bce7cea7904cac7225b20a60cafdfc16 diff --git a/test/src/errors.js b/test/src/errors.js new file mode 100644 index 0000000..509f3b1 --- /dev/null +++ b/test/src/errors.js @@ -0,0 +1,15 @@ +/* eslint-env mocha */ +'use strict'; + +const assert = require('assert'); +const Errors = require('../../src/errors'); + +describe('Errors', function () { + describe('ValidationError', function () { + it('covers', function () { + const e = new Errors.ValidationError('message'); + assert.strictEqual(e.name, 'ValidationError'); + assert.strictEqual(e.stack, undefined); + }); + }); +}); // Errors \ No newline at end of file