diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/give-links-meaning-by-using-descriptive-link-text.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/give-links-meaning-by-using-descriptive-link-text.english.md index 9c346c9357..3ba07dcb6d 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/give-links-meaning-by-using-descriptive-link-text.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/give-links-meaning-by-using-descriptive-link-text.english.md @@ -24,10 +24,10 @@ The link text that Camper Cat is using is not very descriptive without the surro tests: - text: Your code should move the anchor a tags from around the words "Click here" to wrap around the words "information about batteries". testString: assert($('a').text().match(/^(information about batteries)$/g)); - - text: Your a element should have an href attribute with a value of an empty string "". + - text: The a element should have an href attribute with a value of an empty string "". testString: assert($('a').attr('href') === ''); - - text: Your a element should have a closing tag. - testString: assert($('a').length === code.match(/<\/a>/g).length); + - text: The a element should have a closing tag. + testString: assert(code.match(/<\/a>/g) && code.match(/<\/a>/g).length === code.match(//g).length); ``` diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/improve-accessibility-of-audio-content-with-the-audio-element.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/improve-accessibility-of-audio-content-with-the-audio-element.english.md index c53114a129..fce22783b8 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/improve-accessibility-of-audio-content-with-the-audio-element.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/improve-accessibility-of-audio-content-with-the-audio-element.english.md @@ -35,7 +35,7 @@ Time to take a break from Camper Cat and meet fellow camper Zersiax (@zersiax), tests: - text: Your code should have one audio tag. testString: assert($('audio').length === 1); - - text: Make sure your audio element has a closing tag. + - text: Your audio element should have a closing tag. testString: assert(code.match(/<\/audio>/g).length === 1 && code.match(/[\s\S]*<\/audio>/g)); - text: The audio tag should have the controls attribute. testString: assert($('audio').attr('controls')); diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/improve-chart-accessibility-with-the-figure-element.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/improve-chart-accessibility-with-the-figure-element.english.md index 00c810f7a6..9ca4ffc351 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/improve-chart-accessibility-with-the-figure-element.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/improve-chart-accessibility-with-the-figure-element.english.md @@ -44,7 +44,7 @@ tests: testString: assert($('p').length == 0); - text: The figcaption should be a child of the figure tag. testString: assert($('figure').children('figcaption').length == 1); - - text: Make sure your figure element has a closing tag. + - text: Your figure element should have a closing tag. testString: assert(code.match(/<\/figure>/g) && code.match(/<\/figure>/g).length === code.match(/
/g).length); ``` diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/make-screen-reader-navigation-easier-with-the-header-landmark.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/make-screen-reader-navigation-easier-with-the-header-landmark.english.md index 55a964b011..18bc8de59d 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/make-screen-reader-navigation-easier-with-the-header-landmark.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/make-screen-reader-navigation-easier-with-the-header-landmark.english.md @@ -29,7 +29,7 @@ tests: testString: assert($('header').children('h1').length == 1); - text: Your code should not have any div tags. testString: assert($('div').length == 0); - - text: Make sure your header element has a closing tag. + - text: Your header element should have a closing tag. testString: assert(code.match(/<\/header>/g) && code.match(/<\/header>/g).length === code.match(/
/g).length); ``` diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/make-screen-reader-navigation-easier-with-the-nav-landmark.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/make-screen-reader-navigation-easier-with-the-nav-landmark.english.md index 3010713fd9..d99b3a1629 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/make-screen-reader-navigation-easier-with-the-nav-landmark.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/make-screen-reader-navigation-easier-with-the-nav-landmark.english.md @@ -28,7 +28,7 @@ tests: testString: assert($('nav').children('ul').length == 1); - text: Your code should not have any div tags. testString: assert($('div').length == 0); - - text: Make sure your nav element has a closing tag. + - text: Your nav element should have a closing tag. testString: assert(code.match(/<\/nav>/g) && code.match(/<\/nav>/g).length === code.match(/