fix(curriculum): added new test to Give Links Meaning by Using Descriptive Link Text challenge to specifically for href attribute (#37699)

* fix: added new test to test href attribute

* fix: changed You to Your

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

* fix: changed a to an

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
pull/37764/head
Randell Dawson 2019-11-15 08:14:54 -08:00 committed by Tom
parent 1fb202b742
commit 39df6a2b56
1 changed files with 4 additions and 2 deletions

View File

@ -24,8 +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: Make sure your <code>a</code> element has a closing tag.
testString: assert(code.match(/<\/a>/g) && code.match(/<\/a>/g).length === code.match(/<a href=(''|"")>/g).length);
- text: Your <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);
```