fix(challenges): Fix vague tests for "Convert JSON Data to HTML" challenge

pull/18182/head
Julien 2017-10-02 14:15:17 +02:00
parent 76d73479ba
commit 503aa2f986
1 changed files with 3 additions and 1 deletions

View File

@ -396,7 +396,9 @@
"</p>" "</p>"
], ],
"tests": [ "tests": [
"assert(code.match(/json\\.forEach/g), 'message: Your code should use a <code>forEach</code> method to loop over the JSON data from the API.');" "assert(code.match(/html\\s+?(\\+=|=\\shtml\\s\\+)/g), 'message: Your code should store the data in the <code>html</code> variable');",
"assert(code.match(/json\\.forEach/g), 'message: Your code should use a <code>forEach</code> method to loop over the JSON data from the API.');",
"assert(code.match(/<strong>.+<\\/strong>/g), 'message: Your code should wrap the key names in <code>strong</code> tags.');"
], ],
"solutions": [], "solutions": [],
"hints": [], "hints": [],