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(/