fix(curriculum): changed challenge test text to use the word should for Responsive Web Design (#36860)

* fix: changed challenge test text to use should

* fix: changed have to be used in

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: reworded test verbiage

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: improved test verbiage

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: improved test verbiage

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: corrected typo

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: corrected typo

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: changed have the to be used in

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* fix: corrected verbiage

Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>
This commit is contained in:
Randell Dawson
2019-11-20 06:45:19 -08:00
committed by Parth Parth
parent b663c39901
commit 9bf3fdbf38
47 changed files with 116 additions and 116 deletions

View File

@@ -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 <code>a</code> 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 <code>a</code> element should have an <code>href</code> attribute with a value of an empty string <code>""</code>.
- text: The <code>a</code> element should have an <code>href</code> attribute with a value of an empty string <code>""</code>.
testString: assert($('a').attr('href') === '');
- text: Your <code>a</code> element should have a closing tag.
testString: assert($('a').length === code.match(/<\/a>/g).length);
- text: The <code>a</code> element should have a closing tag.
testString: assert(code.match(/<\/a>/g) && code.match(/<\/a>/g).length === code.match(/<a href=(''|"")>/g).length);
```

View File

@@ -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 <code>audio</code> tag.
testString: assert($('audio').length === 1);
- text: Make sure your <code>audio</code> element has a closing tag.
- text: Your <code>audio</code> element should have a closing tag.
testString: assert(code.match(/<\/audio>/g).length === 1 && code.match(/<audio.*>[\s\S]*<\/audio>/g));
- text: The <code>audio</code> tag should have the <code>controls</code> attribute.
testString: assert($('audio').attr('controls'));

View File

@@ -44,7 +44,7 @@ tests:
testString: assert($('p').length == 0);
- text: The <code>figcaption</code> should be a child of the <code>figure</code> tag.
testString: assert($('figure').children('figcaption').length == 1);
- text: Make sure your <code>figure</code> element has a closing tag.
- text: Your <code>figure</code> element should have a closing tag.
testString: assert(code.match(/<\/figure>/g) && code.match(/<\/figure>/g).length === code.match(/<figure>/g).length);
```

View File

@@ -29,7 +29,7 @@ tests:
testString: assert($('header').children('h1').length == 1);
- text: Your code should not have any <code>div</code> tags.
testString: assert($('div').length == 0);
- text: Make sure your <code>header</code> element has a closing tag.
- text: Your <code>header</code> element should have a closing tag.
testString: assert(code.match(/<\/header>/g) && code.match(/<\/header>/g).length === code.match(/<header>/g).length);
```

View File

@@ -28,7 +28,7 @@ tests:
testString: assert($('nav').children('ul').length == 1);
- text: Your code should not have any <code>div</code> tags.
testString: assert($('div').length == 0);
- text: Make sure your <code>nav</code> element has a closing tag.
- text: Your <code>nav</code> element should have a closing tag.
testString: assert(code.match(/<\/nav>/g) && code.match(/<\/nav>/g).length === code.match(/<nav>/g).length);
```

View File

@@ -41,7 +41,7 @@ Camper Cat wants information about the ninja level of his users when they sign u
tests:
- text: Your code should have a <code>fieldset</code> tag around the radio button set.
testString: assert($('fieldset').length == 1);
- text: Make sure your <code>fieldset</code> element has a closing tag.
- text: The <code>fieldset</code> element should have a closing tag.
testString: assert(code.match(/<\/fieldset>/g) && code.match(/<\/fieldset>/g).length === code.match(/<fieldset>/g).length);
- text: Your code should have a <code>legend</code> tag around the text asking what level ninja a user is.
testString: assert($('legend').length == 1);