mirror of
https://github.com/scratchfoundation/scratch-parser.git
synced 2025-08-01 08:58:46 -04:00
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:
parent
ac57b1c749
commit
e8369be7f5
15 changed files with 43 additions and 72 deletions
test/unit
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue