mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-10 19:01:13 -04:00
Fix(curriculum): Add test case for required attribute (#53098)
This commit is contained in:
committed by
GitHub
parent
af6725f287
commit
67b3e51401
@@ -31,6 +31,12 @@ Your `input` element should have a `placeholder` attribute set to `Daily calorie
|
||||
assert.equal(document.querySelector('form input').placeholder, 'Daily calorie budget');
|
||||
```
|
||||
|
||||
Your `input` element should have a `required` attribute.
|
||||
|
||||
```js
|
||||
assert.equal(document.querySelector('form input').hasAttribute('required'), true);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
## --seed-contents--
|
||||
|
||||
Reference in New Issue
Block a user