Merge pull request #15928 from ResamVi/fix/json-challenge-test

Fix vague tests for "Convert JSON Data to HTML" challenge
This commit is contained in:
mrugesh mohapatra
2017-10-24 00:57:46 +05:30
committed by GitHub

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": [],