fix(curriculum): update assertion methods in cat painting workshop (#60071)

This commit is contained in:
Neeraj Rathore
2025-04-29 23:58:50 +05:30
committed by GitHub
parent e810d8746a
commit 3d343ac932
2 changed files with 2 additions and 2 deletions

View File

@@ -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--

View File

@@ -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`.