From 217ad9c85c125e6b8bc70c04fae88fa7555c6acc Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Wed, 3 Jun 2015 00:27:25 -0700 Subject: [PATCH] finish QAing bootstrap challenges --- seed_data/challenges/bootstrap.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seed_data/challenges/bootstrap.json b/seed_data/challenges/bootstrap.json index d08369dea9..f11378e838 100644 --- a/seed_data/challenges/bootstrap.json +++ b/seed_data/challenges/bootstrap.json @@ -897,7 +897,7 @@ "tests": [ "assert($('i').hasClass('fa fa-thumbs-up'), 'Add an i element with the classes \"fa\" and \"fa-thumbs-up\".')", "assert($('button').children('i').length > 0, 'Wrap your i element within your button element.')", - "assert(editor.match(/<\\/i>/g) && editor.match(//g).length === editor.match(/i element has a closing tag.')" + "assert(editor.match(/<\\/i>/g), 'Make sure your i element has a closing tag.')" ], "challengeSeed": [ "", @@ -984,7 +984,7 @@ "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 elements has a closing tag.')" + "assert(editor.match(/<\\/i>/g) && editor.match(/<\\/i/g).length > 2, 'Make sure each of your i elements has a closing tag.')" ], "challengeSeed": [ "", @@ -1250,7 +1250,7 @@ "assert($('button[type=\\'submit\\']').hasClass('btn btn-primary'), 'Give the submit button in your form the classes \"btn btn-primary\".')", "assert($('button[type=\\'submit\\']:has(i.fa.fa-paper-plane)').length > 0, 'Add a <i class=\"fa fa-paper-plane\"></i> within your submit button element.')", "assert($('input[type=\\'text\\']').hasClass('form-control'), 'Give the text input in your form the class \"form-control\".')", - "assert(editor.match(/<\\/i>/g) && editor.match(/i elements has a closing tag.')" + "assert(editor.match(/<\\/i>/g) && editor.match(/<\\/i/g).length > 3, 'Make sure each of your i elements has a closing tag.')" ], "challengeSeed": [ "",