From 52300b9648ce9267f94b6f8f0975ccdfc6e2ce81 Mon Sep 17 00:00:00 2001 From: ahstro Date: Thu, 6 Aug 2015 22:07:52 +0200 Subject: [PATCH] Changed test order & added in 'img to link' --- seed/challenges/html5-and-css.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/html5-and-css.json b/seed/challenges/html5-and-css.json index f4a11581d3..cad97a45bb 100644 --- a/seed/challenges/html5-and-css.json +++ b/seed/challenges/html5-and-css.json @@ -1259,8 +1259,8 @@ "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(new RegExp('#').test($('a').children('img').parent().attr('href')), 'Your a element should be a dead link with a href attribute set to \"#\".')", - "assert($('a').children('img').length > 0, 'Nest your image element within an a element.')", "assert(editor.match(/<\\/a>/g) && editor.match(//g).length === editor.match(/a elements has a closing tag.')" ], "challengeSeed": [