From 36fa4261495ee2bd805b834ed321bde5dc7df486 Mon Sep 17 00:00:00 2001 From: Valeriy Date: Sun, 18 Nov 2018 21:38:47 +0300 Subject: [PATCH] fix: test curriculum --- curriculum/schema/challengeSchema.js | 2 +- curriculum/test/test-challenges.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/curriculum/schema/challengeSchema.js b/curriculum/schema/challengeSchema.js index adc6a99f45..829dee334f 100644 --- a/curriculum/schema/challengeSchema.js +++ b/curriculum/schema/challengeSchema.js @@ -68,7 +68,7 @@ let schema = Joi.object().keys({ title: Joi.string().required() }) ), - template: Joi.string(), + template: Joi.string().allow(''), time: Joi.string().allow(''), title: Joi.string().required() }); diff --git a/curriculum/test/test-challenges.js b/curriculum/test/test-challenges.js index 436d84c413..96de7ba0bc 100644 --- a/curriculum/test/test-challenges.js +++ b/curriculum/test/test-challenges.js @@ -137,6 +137,7 @@ const jQueryScript = fs.readFileSync( } it('Test suite must fail on the initial contents', async function() { + this.timeout(20000); // suppress errors in the console. const oldConsoleError = console.error; console.error = () => {};