From 9c8631ad157484336d75a7be5e50d052071d4d64 Mon Sep 17 00:00:00 2001 From: Clarence Date: Mon, 21 Apr 2025 21:27:41 +0100 Subject: [PATCH] fix(curriculum): update assert for real time counter lab (#59854) --- .../lab-real-time-counter/66bb3e20d3dc5b6d0a21f5dd.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/lab-real-time-counter/66bb3e20d3dc5b6d0a21f5dd.md b/curriculum/challenges/english/25-front-end-development/lab-real-time-counter/66bb3e20d3dc5b6d0a21f5dd.md index e365cd9a154..f2d2eca2eb6 100644 --- a/curriculum/challenges/english/25-front-end-development/lab-real-time-counter/66bb3e20d3dc5b6d0a21f5dd.md +++ b/curriculum/challenges/english/25-front-end-development/lab-real-time-counter/66bb3e20d3dc5b6d0a21f5dd.md @@ -33,7 +33,7 @@ const textInput = document.querySelector('textarea'); assert.equal(textInput.id, 'text-input'); ``` -You should have a `p` element with the `id` of `char-count`. +You should have a `p` element with the `id` of `char-count`. ```js const charCount = document.querySelector('p'); @@ -43,7 +43,8 @@ assert.equal(charCount.id, 'char-count'); The `#char-count` `p` element should initially contain the text `Character Count: 0/50`. ```js -assert(document.querySelector('p')?.innerText, 'Character Count: 0/50'); +const charCount = document.querySelector('p')?.innerText; +assert.equal(charCount, 'Character Count: 0/50'); ``` When the `#text-input` element contains the text `hello coder` the `#char-count` element should contain the text `"Character Count: 11/50"`