mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-10 10:01:51 -04:00
chore: upgrade tests to current standards in palindrome checker lab (#59843)
This commit is contained in:
@@ -54,7 +54,7 @@ You should have a `div`, `span`, or `p` element with an `id` of `"result"`.
|
||||
|
||||
```js
|
||||
const el = document.getElementById('result');
|
||||
assert(['div', 'span', 'p'].includes(el?.nodeName?.toLowerCase()));
|
||||
assert.oneOf(el?.nodeName?.toLowerCase(), ['div', 'span', 'p']);
|
||||
```
|
||||
|
||||
When you click on the `#check-btn` element without entering a value into the `#text-input` element, an alert should appear with the text `Please input a value`.
|
||||
|
||||
Reference in New Issue
Block a user