mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): make test more precise in business card lab (#59930)
This commit is contained in:
+1
-1
@@ -222,7 +222,7 @@ assert.match(document.querySelectorAll(".business-card p")[4].textContent,/.+/);
|
||||
After the phone number `p` element, there should be an `a` element with the text `Portfolio`
|
||||
|
||||
```js
|
||||
assert.equal(document.querySelector('.business-card a')?.textContent, 'Portfolio');
|
||||
assert.equal(document.querySelector('.business-card > a')?.textContent, 'Portfolio');
|
||||
```
|
||||
|
||||
Your portfolio `a` element should have a valid `href`.
|
||||
|
||||
Reference in New Issue
Block a user