fix(curriculum): Add assertion tests for button click event and changeBackgroundColor function (#55149)

This commit is contained in:
Ilenia
2024-06-10 18:22:24 +02:00
committed by GitHub
parent e58f37e9de
commit d7ceea325e

View File

@@ -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);
```