mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-11 04:01:15 -04:00
fix(curriculum): update assertion methods in cat painting workshop (#60071)
This commit is contained in:
@@ -25,7 +25,7 @@ const link = document.querySelector("head>link");
|
||||
assert.equal(link?.getAttribute("rel"), "stylesheet");
|
||||
const href = link?.getAttribute("data-href");
|
||||
console.log(href)
|
||||
assert(href === "./styles.css" || href === "styles.css");
|
||||
assert.oneOf(href, ["./styles.css", "styles.css"]);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
@@ -14,7 +14,7 @@ Using a class selector, give the `.cat-head` element a width of `205px` and a he
|
||||
You should have a `.cat-head` selector.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document)?.getStyle('.cat-head'))
|
||||
assert.exists(new __helpers.CSSHelp(document)?.getStyle('.cat-head'))
|
||||
```
|
||||
|
||||
Your `.cat-head` selector should have a `width` set to `205px`.
|
||||
|
||||
Reference in New Issue
Block a user