mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
16 lines
527 B
JavaScript
16 lines
527 B
JavaScript
var assert = require('assert');
|
|
|
|
var Validator = require('jsonschema').Validator;
|
|
var v = new Validator();
|
|
|
|
Error.stackTraceLimit = 0;
|
|
|
|
describe("protocol schema", function() {
|
|
this.timeout(60 * 1000);
|
|
it("protocol.json is valid", function() {
|
|
var instance = require('../protocol/protocol.json');
|
|
var schema = require('../protocol/protocol_schema.json');
|
|
var result = v.validate(instance, schema);
|
|
assert.strictEqual(result.errors.length, 0, require('util').inspect(result.errors, {'depth': 4}));
|
|
});
|
|
});
|