From 1b3505615084d72eb7a845a668752ff4826cc542 Mon Sep 17 00:00:00 2001 From: Harsha Date: Tue, 1 Dec 2015 02:06:12 -0500 Subject: [PATCH] Improve test case for waypoint:Turn an Image into a Link --- challenges/html5-and-css.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/html5-and-css.json b/challenges/html5-and-css.json index 8f4d50688e..08fff19ee1 100644 --- a/challenges/html5-and-css.json +++ b/challenges/html5-and-css.json @@ -1414,7 +1414,7 @@ "Once you've done this, hover over your image with your cursor. Your cursor's normal pointer should become the link clicking pointer. The photo is now a link." ], "tests": [ - "assert($(\"a\").children(\"img\").length > 0, 'Nest your img element within an a element.')", + "assert($(\"a\").children(\"img.smaller-image\").length > 0, 'Nest the existing img element within an a element.')", "assert(new RegExp(\"#\").test($(\"a\").children(\"img\").parent().attr(\"href\")), 'Your a element should be a dead link with a href attribute set to #.')", "assert(editor.match(/<\\/a>/g) && editor.match(//g).length === editor.match(/a elements has a closing tag.')" ],