From f6e6ae243ff38ef2261c0f4fd4d4f7e2fac66dc9 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Sun, 31 May 2015 13:01:53 -0700 Subject: [PATCH] close #775 --- seed_data/challenges/basic-html5-and-css.json | 9 +++++++-- views/challengeMap/show.jade | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json index a7d7c835c0..61d7a1eda7 100644 --- a/seed_data/challenges/basic-html5-and-css.json +++ b/seed_data/challenges/basic-html5-and-css.json @@ -1294,7 +1294,9 @@ ], "tests": [ "assert($('ul').length > 0, 'Create a ul element.')", - "assert($('li').length > 2, 'Add three li elements to your ul element.')" + "assert($('li').length > 2, 'Add three li elements to your ul element.')", + "assert(editor.match(/<\\/ul>/g), 'Be sure that your ul element has a closing tag.')", + "assert(editor.match(/<\\/li>/g) && editor.match(/<\\/li>/g).length > 2, 'Be sure that each of your li elements has a closing tag.')" ], "challengeSeed": [ "", @@ -1359,7 +1361,10 @@ "assert($('ul').length > 0, 'You should have an ul element on your webpage.')", "assert($('ol').length > 0, 'You should have an ol element on your webpage.')", "assert($('li').length > 5, 'You should have three li elements within your ul element.')", - "assert($('li').length > 5, 'You should have three li elements within your ol element.')" + "assert($('li').length > 5, 'You should have three li elements within your ol element.')", + "assert(editor.match(/<\\/ol>/g), 'Be sure that your ol element has a closing tag.')", + "assert(editor.match(/<\\/ul>/g), 'Be sure that your ul element has a closing tag.')", + "assert(editor.match(/<\\/li>/g).length > 5, 'Be sure that each of your li elements has a closing tag.')" ], "challengeSeed": [ "", diff --git a/views/challengeMap/show.jade b/views/challengeMap/show.jade index a780b2030c..3c3280564d 100644 --- a/views/challengeMap/show.jade +++ b/views/challengeMap/show.jade @@ -44,11 +44,11 @@ block content .row .hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10 .col-xs-12.col-sm-9.col-md-10 - li.large-p.negative-10 First 200-hour Nonprofit Project + li.large-p.negative-10 200-hour Nonprofit Project #1 .row .hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10 .col-xs-12.col-sm-9.col-md-10 - li.large-p.negative-10 Second 200-hour Nonprofit Project + li.large-p.negative-10 200-hour Nonprofit Project #2 .row .hidden-xs.col-sm-3.col-md-2.ion-locked.padded-ionic-icon.text-center.large-p.negative-10 .col-xs-12.col-sm-9.col-md-10