From b21d4020a51e7bc237bcf15d169b9a158deeb1b3 Mon Sep 17 00:00:00 2001 From: "Alister N. Mada" Date: Mon, 25 Jan 2016 19:15:25 +0700 Subject: [PATCH] Fix HTML tests that don't accept classes in different order --- .../bootstrap.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/challenges/01-front-end-development-certification/bootstrap.json b/challenges/01-front-end-development-certification/bootstrap.json index a06c94acaa..098ebc5885 100644 --- a/challenges/01-front-end-development-certification/bootstrap.json +++ b/challenges/01-front-end-development-certification/bootstrap.json @@ -1107,8 +1107,8 @@ "" ], "tests": [ - "assert($(\"i\").hasClass(\"fa fa-thumbs-up\"), 'message: Add an i element with the classes fa and fa-thumbs-up.');", - "assert($(\"i.fa-thumbs-up\").parent().text().match(/Like/gi) && $(\".btn-primary > i\").hasClass(\"fa fa-thumbs-up\"), 'message: Your fa-thumbs-up icon should be located within the Like button.');", + "assert($(\"i\").is(\".fa.fa-thumbs-up\"), 'message: Add an i element with the classes fa and fa-thumbs-up.');", + "assert($(\"i.fa-thumbs-up\").parent().text().match(/Like/gi) && $(\".btn-primary > i\").is(\".fa.fa-thumbs-up\"), 'message: Your fa-thumbs-up icon should be located within the Like button.');", "assert($(\"button\").children(\"i\").length > 0, 'message: Nest your i element within your button element.');", "assert(code.match(/<\\/i>/g), 'message: Make sure your i element has a closing tag.');" ], @@ -1187,9 +1187,9 @@ "" ], "tests": [ - "assert($(\".btn-danger > i\").hasClass(\"fa fa-trash\"), 'message: You should add a <i class=\"fa fa-trash\"></i> within your delete button element.');", - "assert($(\".btn-info > i\").hasClass(\"fa fa-info-circle\"), 'message: You should add a <i class=\"fa fa-info-circle\"></i> within your info button element.');", - "assert(code.match(/<\\/i>/g) && code.match(/<\\/i>/g).length > 2 && $(\".btn-primary > i\").hasClass(\"fa fa-thumbs-up\"), 'message: Make sure each of your i elements has a closing tag and <i class=\"fa fa-thumbs-up\"></i> is in your like button element.');" + "assert($(\".btn-danger > i\").is(\".fa.fa-trash\"), 'message: You should add a <i class=\"fa fa-trash\"></i> within your delete button element.');", + "assert($(\".btn-info > i\").is(\".fa.fa-info-circle\"), 'message: You should add a <i class=\"fa fa-info-circle\"></i> within your info button element.');", + "assert(code.match(/<\\/i>/g) && code.match(/<\\/i>/g).length > 2 && $(\".btn-primary > i\").is(\".fa.fa-thumbs-up\"), 'message: Make sure each of your i elements has a closing tag and <i class=\"fa fa-thumbs-up\"></i> is in your like button element.');" ], "type": "waypoint", "challengeType": 0,