Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('dappfile should be a valid json schema ', function (done) {
tv4.addSchema('definitions', definitions);
tv4.addSchema('http://json-schema.org/draft-04/hyper-schema', hyper_schema);
tv4.addSchema('http://json-schema.org/draft-04/schema', schema);
var valid = tv4.validate(dappfileSchema, hyper_schema);
assert(valid, 'dapple.json is not a valid schema');
assert(tv4.missing.length === 0,
'some references are missing: ' + JSON.stringify(tv4.missing));
done();
});
});
it('dappfile should be a valid json schema ', function (done) {
tv4.addSchema('definitions', definitions);
tv4.addSchema('http://json-schema.org/draft-04/hyper-schema', hyper_schema);
tv4.addSchema('http://json-schema.org/draft-04/schema', schema);
var valid = tv4.validate(dappfileSchema, hyper_schema);
assert(valid, 'dapple.json is not a valid schema');
assert(tv4.missing.length === 0,
'some references are missing: ' + JSON.stringify(tv4.missing));
done();
});
});