From d7ceea325e1db8ec0e2adddf9c7cf7d3fb831328 Mon Sep 17 00:00:00 2001 From: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> Date: Mon, 10 Jun 2024 18:22:24 +0200 Subject: [PATCH] fix(curriculum): Add assertion tests for button click event and changeBackgroundColor function (#55149) --- .../66326913b729e16dd0127a36.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/66326913b729e16dd0127a36.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/66326913b729e16dd0127a36.md index eaa7ee92b70..442fd281970 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/66326913b729e16dd0127a36.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-debugging-by-building-a-random-background-color-changer/66326913b729e16dd0127a36.md @@ -22,6 +22,8 @@ Once you fix that final bug, the random background color changer will be complet You should not call the `changeBackgroundColor` function. Instead, assign the function reference to the `onclick` property. ```js +assert.strictEqual(typeof btn.onclick, 'function'); +assert.strictEqual(typeof changeBackgroundColor, 'function'); assert.strictEqual(btn.onclick, changeBackgroundColor); ```