Skip to content

Commit 5a1cb8e

Browse files
chore: upgrade tests to current standards in palindrome checker lab (freeCodeCamp#59843)
1 parent 37028f2 commit 5a1cb8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curriculum/challenges/english/25-front-end-development/lab-palindrome-checker/657bdc55a322aae1eac3838f.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ You should have a `div`, `span`, or `p` element with an `id` of `"result"`.
5454
5555
```js
5656
const el = document.getElementById('result');
57-
assert(['div', 'span', 'p'].includes(el?.nodeName?.toLowerCase()));
57+
assert.oneOf(el?.nodeName?.toLowerCase(), ['div', 'span', 'p']);
5858
```
5959
6060
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`.

0 commit comments

Comments
 (0)