From 15eb0ff1127119fc47eab70cc10e9f588bb8382f Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Thu, 11 Feb 2016 12:56:41 +0000 Subject: [PATCH] Fix test for Create a bootstrap row challenge. This commit fixes the tests to check if the `
` with `row` class is actually nested below the `

` tag. Tested locally. --- .../01-front-end-development-certification/bootstrap.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/bootstrap.json b/challenges/01-front-end-development-certification/bootstrap.json index dd5fcf5942..8aba18521d 100644 --- a/challenges/01-front-end-development-certification/bootstrap.json +++ b/challenges/01-front-end-development-certification/bootstrap.json @@ -1627,7 +1627,7 @@ "" ], "tests": [ - "assert($(\"div\").length > 1, 'message: Add a div element below your h3 element.');", + "assert(($(\"div\").length > 1) && ($(\"div.row h3.text-primary\").length == 0) && ($(\"div.row + h3.text-primary\").length == 0) && ($(\"h3.text-primary + div.row\").length > 0), 'message: Add a div element below your h3 element.');", "assert($(\"div\").hasClass(\"row\"), 'message: Your div element should have the class row');", "assert($(\"div.container-fluid div.row\").length > 0, 'message: Your row div should be nested inside the container-fluid div');", "assert(code.match(/<\\/div>/g) && code.match(/
/g).length === code.match(/
div element has a closing tag.');"