From 5484a0f90bd3ce7199b82172803eb772adaf1628 Mon Sep 17 00:00:00 2001 From: a2937 Date: Mon, 30 Jan 2023 02:49:34 -0500 Subject: [PATCH] fix(curriculum): add test for multiple ol elements (#49168) * Fix(curriculum) - Prevent an oversight in step 27 of the cat app * Fix(curriculum) - Remember to make the queried nodes iterable --- .../5ef9b03c81a63668521804d2.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md index 0ae4f2929d5..aa71bdda6ac 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md @@ -57,6 +57,12 @@ assert.deepStrictEqual( ); ``` +You should only have one `ol` element. + +```js +assert([...document.querySelectorAll('ol')].length == 1); +``` + # --seed-- ## --seed-contents--