fix: test curriculum

This commit is contained in:
Valeriy
2018-11-18 21:38:47 +03:00
committed by Stuart Taylor
parent 088cbb684e
commit 36fa426149
2 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,7 @@ let schema = Joi.object().keys({
title: Joi.string().required() title: Joi.string().required()
}) })
), ),
template: Joi.string(), template: Joi.string().allow(''),
time: Joi.string().allow(''), time: Joi.string().allow(''),
title: Joi.string().required() title: Joi.string().required()
}); });

View File

@ -137,6 +137,7 @@ const jQueryScript = fs.readFileSync(
} }
it('Test suite must fail on the initial contents', async function() { it('Test suite must fail on the initial contents', async function() {
this.timeout(20000);
// suppress errors in the console. // suppress errors in the console.
const oldConsoleError = console.error; const oldConsoleError = console.error;
console.error = () => {}; console.error = () => {};