fixed tests for link to external pages challenge (#41191)
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
This commit is contained in:
@ -32,7 +32,7 @@ assert(/cat photos/gi.test($('a').text()));
|
||||
You need an `a` element that links to `https://freecatphotoapp.com`
|
||||
|
||||
```js
|
||||
assert(/https:\/\/(www\.)?freecatphotoapp\.com/gi.test($('a').attr('href')));
|
||||
assert(/^https?:\/\/freecatphotoapp\.com\/?$/i.test($('a').attr('href')));
|
||||
```
|
||||
|
||||
Your `a` element should have a closing tag.
|
||||
|
Reference in New Issue
Block a user