fix: parse certificates separately (#39182)

This commit is contained in:
Oliver Eyton-Williams
2020-07-03 23:13:18 +02:00
committed by Mrugesh Mohapatra
parent 0e1dca5924
commit 5fe16ada3d

View File

@ -34,7 +34,9 @@ function plugin() {
);
tests.question.text = mdToHTML(tests.question.text);
}
if (tests.tests) {
// since tests are overloaded (they're both a list of projects and
// actual tests), it's necessary to check which they are:
if (tests.tests && tests.tests[0] && tests.tests[0].text) {
tests.tests = tests.tests.map(({ text, testString }) => ({
text: mdToHTML(text),
testString