From d63721c250331290de19554446736ac48aa29f2e Mon Sep 17 00:00:00 2001 From: bugron Date: Sat, 12 Sep 2015 10:40:30 +0400 Subject: [PATCH] improves tests to check if elements are nested properly --- seed/challenges/bootstrap.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seed/challenges/bootstrap.json b/seed/challenges/bootstrap.json index aa64b50ae97..2bd87741063 100644 --- a/seed/challenges/bootstrap.json +++ b/seed/challenges/bootstrap.json @@ -1159,9 +1159,9 @@ "Use Font Awesome to add a info-circle icon to your info button and a trash icon to your delete button." ], "tests": [ - "assert($(\"i\").hasClass(\"fa fa-trash\"), 'You should add a <i class=\"fa fa-trash\"></i> within your delete button element.')", - "assert($(\"i\").hasClass(\"fa fa-info-circle\"), 'You should add a <i class=\"fa fa-info-circle\"></i> within your info button element.')", - "assert(editor.match(/<\\/i>/g) && editor.match(/<\\/i>/g).length > 2, 'Make sure each of your i elements has a closing tag.')" + "assert($(\".btn-danger > i\").hasClass(\"fa fa-trash\"), 'You should add a <i class=\"fa fa-trash\"></i> within your delete button element.')", + "assert($(\".btn-info > i\").hasClass(\"fa fa-info-circle\"), 'You should add a <i class=\"fa fa-info-circle\"></i> within your info button element.')", + "assert(editor.match(/<\\/i>/g) && editor.match(/<\\/i>/g).length > 2 && $(\".btn-primary > i\").hasClass(\"fa fa-thumbs-up\"), '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.')" ], "challengeSeed": [ "",