1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-03 04:47:07 +01:00

Clean up handling of "meta".

This commit is contained in:
devlinjd
2015-11-20 09:28:55 -05:00
parent ad6d2c75ca
commit 9cde39703e
6 changed files with 44 additions and 33 deletions

View File

@ -57,9 +57,9 @@ describe('jane-doe.json (FRESH)', function () {
var result = _sheet.isValid();
// var schemaJson = require('FRESCA');
// var validate = validator( schemaJson, { verbose: true } );
// var result = validate( JSON.parse( _sheet.meta.raw ) );
// var result = validate( JSON.parse( _sheet.imp.raw ) );
result || console.log("\n\nOops, resume didn't validate. " +
"Validation errors:\n\n", _sheet.meta.validationErrors, "\n\n");
"Validation errors:\n\n", _sheet.imp.validationErrors, "\n\n");
result.should.equal( true );
});

View File

@ -51,7 +51,7 @@ describe('fullstack.json (JRS)', function () {
it('should validate against the JSON Resume schema', function() {
var schemaJson = require('../src/core/resume.json');
var validate = validator( schemaJson, { verbose: true } );
var result = validate( JSON.parse( _sheet.meta.raw ) );
var result = validate( JSON.parse( _sheet.imp.raw ) );
result || console.log("\n\nOops, resume didn't validate. " +
"Validation errors:\n\n", validate.errors, "\n\n");
result.should.equal( true );