From 7bf41196af59834b1f1b129f80856c7378b8ec0b Mon Sep 17 00:00:00 2001 From: Joseph Morse Date: Sat, 2 Apr 2016 20:46:54 -0400 Subject: [PATCH] Changed Test for Create an Ordered List I changed the first two test to check if the items proceeding the lists have the expected text. This should handle testing if they exist as well as in the right place. Also changed the two following test to implicitly check for 3 list items. --- .../html5-and-css.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/challenges/01-front-end-development-certification/html5-and-css.json b/challenges/01-front-end-development-certification/html5-and-css.json index 20f548b1a4..dd970762b5 100644 --- a/challenges/01-front-end-development-certification/html5-and-css.json +++ b/challenges/01-front-end-development-certification/html5-and-css.json @@ -1694,10 +1694,10 @@ "

Top 3 things cats hate:

" ], "tests": [ - "assert($(\"ul\").length > 0, 'message: You should have an ul element on your page.');", - "assert($(\"ol\").length > 0, 'message: You should have an ol element on your page.');", - "assert($(\"ul li\").length > 2, 'message: You should have three li elements within your ul element.');", - "assert($(\"ol li\").length > 2, 'message: You should have three li elements within your ol element.');", + "assert.equal($(\"ol\").prev().text(), 'Top 3 things cats hate:', 'message: Your should have an ordered list for \"Top 3 things cats hate\"');", + "assert.equal($(\"ul\").prev().text(), \"Things cats love:\", 'message: You should have an unordered list for \"Things Cats Love\"');", + "assert.equal($(\"ul li\").length, 3, 'message: You should have three li elements within your ul element.');", + "assert.equal($(\"ol li\").length, 3, 'message: You should have three li elements within your ol element.');", "assert(code.match(/<\\/ul>/g) && code.match(/<\\/ul>/g).length === code.match(/