diff --git a/challenges/04-data-visualization/json-apis-and-ajax.json b/challenges/04-data-visualization/json-apis-and-ajax.json index 7d2af40824d..8ee8cf6aa3c 100644 --- a/challenges/04-data-visualization/json-apis-and-ajax.json +++ b/challenges/04-data-visualization/json-apis-and-ajax.json @@ -396,7 +396,9 @@ "
" ], "tests": [ - "assert(code.match(/json\\.forEach/g), 'message: Your code should use aforEach
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 html
variable');",
+ "assert(code.match(/json\\.forEach/g), 'message: Your code should use a forEach
method to loop over the JSON data from the API.');",
+ "assert(code.match(/.+<\\/strong>/g), 'message: Your code should wrap the key names in strong
tags.');"
],
"solutions": [],
"hints": [],