refactor: Refactor library to use latest scratch eslint rules and update all dependencies

Refactors library to use latest scratch eslint rules. Updates all dependencies to latest versions
which requires minor changes to the JSON schema, tests, and supported engine (8+)

BREAKING CHANGE: Module no longer supports less than Node 8
This commit is contained in:
Andrew Sliwinski 2018-03-24 11:09:43 -04:00
parent ac57b1c749
commit e8369be7f5
15 changed files with 43 additions and 72 deletions
test/unit

View file

@ -16,9 +16,9 @@ test('valid', function (t) {
});
test('invalid', function (t) {
validate({foo:1}, function (err, res) {
validate({foo: 1}, function (err, res) {
t.equal(Array.isArray(err), true);
t.equal(res, undefined);
t.type(res, 'undefined');
t.type(err[0], 'object');
t.type(err[0].keyword, 'string');
t.type(err[0].dataPath, 'string');