From 1aa23a7087b71c3f55262aa956ac4c15c9d184cb Mon Sep 17 00:00:00 2001 From: Ryan Johnston Date: Sat, 16 Apr 2016 23:30:05 -0600 Subject: [PATCH] Adds a new test to Comment out HTML to ensure correct order. --- .../01-front-end-development-certification/html5-and-css.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seed/challenges/01-front-end-development-certification/html5-and-css.json b/seed/challenges/01-front-end-development-certification/html5-and-css.json index e751620651..b10063dcdb 100644 --- a/seed/challenges/01-front-end-development-certification/html5-and-css.json +++ b/seed/challenges/01-front-end-development-certification/html5-and-css.json @@ -274,7 +274,8 @@ "assert(($(\"h1\").length === 0), 'message: Comment out your h1 element so that it is not visible on your page.');", "assert(($(\"h2\").length > 0), 'message: Leave your h2 element uncommented so that it is visible on your page.');", "assert(($(\"p\").length === 0), 'message: Comment out your p element so that it is not visible on your page.');", - "assert(code.match(/-->/g).length > 1, 'message: Be sure to close each of your comments with -->.');" + "assert(code.match(/-->/g).length > 1, 'message: Be sure to close each of your comments with -->.');", + "assert((code.match(/<([a-z0-9]){1,2}>/g)[0]===\"

\" && code.match(/<([a-z0-9]){1,2}>/g)[1]===\"

\" && code.match(/<([a-z0-9]){1,2}>/g)[2]===\"

\") , 'message: Do not change the order of the h1 h2 or p in the code.');" ], "type": "waypoint", "titleEs": "Comenta en HTML",