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

Fix vague tests for "Convert JSON Data to HTML" challenge
pull/18182/head
mrugesh mohapatra 2017-10-24 00:57:46 +05:30 committed by GitHub
commit 6e764b3799
1 changed files with 3 additions and 1 deletions

View File

@ -396,7 +396,9 @@
"</p>"
],
"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": [],
"hints": [],