mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
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:
+3
-3
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user