From 2cc906dd9b5846f0dc959bac178e6592adceee18 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Sat, 30 May 2015 01:49:00 -0700 Subject: [PATCH] close more issues related to typos and tests --- seed_data/challenges/basic-html5-and-css.json | 14 ++++++++------ seed_data/challenges/bootstrap.json | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json index 910293880a..0dc62576e0 100644 --- a/seed_data/challenges/basic-html5-and-css.json +++ b/seed_data/challenges/basic-html5-and-css.json @@ -977,15 +977,17 @@ "name": "Waypoint: Wrap an Anchor Element within a Paragraph", "difficulty": 0.032, "description": [ - "Now wrap your anchor element within a paragraph element so that the surrounding paragraph says \"click here for cat photos\", but where only \"cat photos\" is a link - the rest is plain text.", - "Again, here's a diagram of an anchor tag for your reference:", + "Now wrap your anchor element within a p element so that the surrounding paragraph says \"click here for cat photos\", but where only \"cat photos\" is a link - the rest is plain text.", + "Again, here's a diagram of an a element for your reference:", "a diagram of how anchor tags are composed with the same text as on the following line", "Here's an example: <p>Here's a <a href='http://freecodecamp.com'> link to Free Code Camp</a> for you to follow.</p>" ], "tests": [ - "assert((/photo/gi).test($('a').text()), 'You need an anchor element that links to \"catphotoapp.com\".')", - "assert($('a').filter(function(index) { return /photo/gi.test($('a')[index]); }).length === 1, 'Your anchor element should have the anchor text of \"cat photos\"')", - "assert($('a').parent().is('p'), 'Your anchor element should be wrapped within a paragraph element.')" + "assert($('a').attr('href').match(/catphotoapp.com/gi).length > 0, 'You need an a element that links to \"catphotoapp.com\".')", + "assert($('a').text().match(/cat\\sphotos/gi).length > 0, 'Your a element should have the anchor text of \"cat photos\"')", + "assert($('a').parent().is('p'), 'Your anchor element should be wrapped within a paragraph element.')", + "assert($('p').text().match(/click\\shere\\sfor/gi), 'Your p element should have the text \"click here for\".')", + "assert(editor.match(/<\\/p>/g).length > 2, 'Be sure that each of your p elements has a closing tag.')" ], "challengeSeed": [ "", @@ -1294,7 +1296,7 @@ "name": "Waypoint: Create an Ordered List", "difficulty": 0.037, "description": [ - "Create an ordered list of the the top 3 things cats hate the most.", + "Create an ordered list of the top 3 things cats hate the most.", "HTML has a special element for creating ordered lists, or numbered-style lists.", "Ordered lists start with a <ol> element. Then they contain some number of <li> elements.", "For example: <ol><li>hydrogen</li><li>helium</li><ol> would create a numbered list of \"hydrogen\" and \"helium\"." diff --git a/seed_data/challenges/bootstrap.json b/seed_data/challenges/bootstrap.json index 1890fb411a..58d8aa5dbe 100644 --- a/seed_data/challenges/bootstrap.json +++ b/seed_data/challenges/bootstrap.json @@ -1231,7 +1231,7 @@ "tests": [ "assert($('.btn-primary').length > 1, 'Give the submit button in your form the classes \"btn btn-primary\".')", "assert($('.fa-paper-plane').length > 0, 'Add a <i class=\"fa fa-paper-plane\"></i> within your submit button element.')", - "assert($('.form-control').length > 0, 'Give the the text input field in your form the class \"form-control\".')" + "assert($('.form-control').length > 0, 'Give the text input field in your form the class \"form-control\".')" ], "challengeSeed": [ "",