From 99fce814ec5737451f13cdbebdc32bbf93bb6cb7 Mon Sep 17 00:00:00 2001 From: Taemin Lee <153023911+TaemnLee@users.noreply.github.com> Date: Mon, 2 Jun 2025 04:32:12 -0400 Subject: [PATCH] chore(curriculum): update asserts in magazine workshop step 17 (#60635) --- .../workshop-magazine/6143a83fcc32c26bcfae3efa.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/workshop-magazine/6143a83fcc32c26bcfae3efa.md b/curriculum/challenges/english/25-front-end-development/workshop-magazine/6143a83fcc32c26bcfae3efa.md index 18192e31e36..69b097a56b6 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-magazine/6143a83fcc32c26bcfae3efa.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-magazine/6143a83fcc32c26bcfae3efa.md @@ -14,19 +14,19 @@ Below your `.text` element, create a new `section` element and give it a `class` You should create a new `section` element. ```js -assert(document.querySelectorAll('section')?.length === 3) +assert.lengthOf(document.querySelectorAll('section'), 3); ``` Your new `section` element should come after your `.text` element. ```js -assert(document.querySelectorAll('section')?.[2]?.previousElementSibling?.className === 'text') +assert.equal(document.querySelectorAll('section')?.[2]?.previousElementSibling?.className, 'text'); ``` Your new `section` element should have the `class` set to `text text-with-images`. ```js -assert(document.querySelectorAll('section')?.[2]?.className === 'text text-with-images') +assert.equal(document.querySelectorAll('section')?.[2]?.className, 'text text-with-images'); ``` Your new `section` element should have an `article` element. @@ -44,19 +44,19 @@ assert.exists(document.querySelector('.text-with-images aside')); The `article` element should come before the `aside` element. ```js -assert(document.querySelector('.text-with-images article')?.nextElementSibling?.localName === 'aside'); +assert.equal(document.querySelector('.text-with-images article')?.nextElementSibling?.localName, 'aside'); ``` Your `article` element should have the `class` set to `brief-history`. ```js -assert(document.querySelector('.text-with-images article')?.className === 'brief-history'); +assert.equal(document.querySelector('.text-with-images article')?.className, 'brief-history'); ``` Your `aside` element should have the `class` set to `image-wrapper`. ```js -assert(document.querySelector('.text-with-images aside')?.className === 'image-wrapper'); +assert.equal(document.querySelector('.text-with-images aside')?.className, 'image-wrapper'); ``` # --seed--