mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 16:30:11 +00:00
Add FRESH validation test.
This commit is contained in:
parent
0c1b1734ee
commit
1b3fdfbc5f
@ -53,14 +53,15 @@ describe('fresh-resume-exemplar.json (FRESH)', function () {
|
|||||||
_sheet.stringify().should.equal( savedSheet.stringify() )
|
_sheet.stringify().should.equal( savedSheet.stringify() )
|
||||||
});
|
});
|
||||||
|
|
||||||
// it('should validate against the FRESH resume schema', function() {
|
it('should validate against the FRESH resume schema', function() {
|
||||||
// var schemaJson = require('../src/core/resume.json');
|
var result = _sheet.isValid();
|
||||||
// var validate = validator( schemaJson, { verbose: true } );
|
// var schemaJson = require('FRESCA');
|
||||||
// var result = validate( JSON.parse( _sheet.meta.raw ) );
|
// var validate = validator( schemaJson, { verbose: true } );
|
||||||
// result || console.log("\n\nOops, resume didn't validate. " +
|
// var result = validate( JSON.parse( _sheet.meta.raw ) );
|
||||||
// "Validation errors:\n\n", validate.errors, "\n\n");
|
result || console.log("\n\nOops, resume didn't validate. " +
|
||||||
// result.should.equal( true );
|
"Validation errors:\n\n", _sheet.meta.validationErrors, "\n\n");
|
||||||
// });
|
result.should.equal( true );
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user