fix(curriculum): fix test 3 hint on cat photo app (#47587)

* fix: cat photo app step 5 hint

* Revert "fix: cat photo app step 5 hint"

This reverts commit b943858c4fdd6a6f8e4292e31e353f76e777cb20.

* fix: cat photo app step 5 hint
This commit is contained in:
Raquel
2022-09-25 22:59:45 -06:00
committed by GitHub
parent d8346f1069
commit 42fbf2e6ab

View File

@@ -28,10 +28,8 @@ assert(code.match(/<\/main\>/));
Your `main` element's opening tag should be below the `h1` element. You have them in the wrong order.
```js
const collection = [...document.querySelectorAll('main,h1')].map(
(node) => node.nodeName
);
assert(collection.indexOf('H1') < collection.indexOf('MAIN'));
const main = document.querySelector('main');
assert.equal(main?.previousElementSibling?.tagName, "H1");
```
Your `main` element's opening tag should be above the `h2` element. You have them in the wrong order.