mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): no empty source lab travel agency (#57783)
This commit is contained in:
+2
-2
@@ -233,7 +233,7 @@ Each `img` element should have a valid `src` attribute.
|
||||
const images = document.querySelectorAll('img');
|
||||
assert.isNotEmpty(images);
|
||||
for (let image of images) {
|
||||
assert.isAbove(image.src.length, 0);
|
||||
assert.isAbove(image.src.trim().length, 0);
|
||||
}
|
||||
```
|
||||
|
||||
@@ -243,7 +243,7 @@ Each `img` element should have an `alt` attribute with an appropriate value.
|
||||
const images = document.querySelectorAll('img');
|
||||
assert.isNotEmpty(images);
|
||||
for (let image of images) {
|
||||
assert.isAbove(image.alt.length, 0);
|
||||
assert.isAbove(image.alt.trim().length, 0);
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user