fix(curriculum): strict test, wrong spacing of step - CatPhotoApp (#48727)

* fix: strict step and wrong spacing of step in CatPhotoApp

* Remove the global flag from the test

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
This commit is contained in:
Muhammed Mustafa
2022-12-12 00:17:44 +02:00
committed by GitHub
parent dc944c607d
commit afafa13d98
@@ -22,7 +22,7 @@ assert(document.querySelector('section'));
Your `section` element should have a closing tag. Closing tags have a `/` just after the `<` character.
```js
assert(code.match(/<\/section\>/));
assert(code.match(/<\/section\s*>/i));
```
The entire `section` element should be between the opening and closing tags of the `main` element.
@@ -57,15 +57,15 @@ assert.isFalse(includesH1);
<html>
<body>
--fcc-editable-region--
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
<a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
</main>
--fcc-editable-region--
</body>
</html>