mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(curriculum): update assertions to use assert.equal (#60013)
Some checks failed
i18n - Build Validation / Validate i18n Builds (20) (push) Has been cancelled
CI - Node.js / Lint (20) (push) Has been cancelled
i18n - Download Client UI / Client (push) Has been cancelled
CI - Node.js / Build (20) (push) Has been cancelled
CI - Node.js / Test (20) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (20) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 20) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 20) (push) Has been cancelled
Some checks failed
i18n - Build Validation / Validate i18n Builds (20) (push) Has been cancelled
CI - Node.js / Lint (20) (push) Has been cancelled
i18n - Download Client UI / Client (push) Has been cancelled
CI - Node.js / Build (20) (push) Has been cancelled
CI - Node.js / Test (20) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (20) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 20) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 20) (push) Has been cancelled
This commit is contained in:
parent
e638a59db7
commit
fa66608b41
@ -21,19 +21,19 @@ Give `.cat-head` a `position` property of `static`, then set the `top` and `left
|
||||
Your `.cat-head` selector should have a `position` property set to `static`. Make sure you add a semicolon.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document)?.getStyle('.cat-head')?.position === 'static')
|
||||
assert.equal(new __helpers.CSSHelp(document)?.getStyle('.cat-head')?.position, 'static')
|
||||
```
|
||||
|
||||
Your `.cat-head` selector should have a `top` property set to `100px`. Make sure you add a semicolon.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document)?.getStyle('.cat-head')?.top === '100px')
|
||||
assert.equal(new __helpers.CSSHelp(document)?.getStyle('.cat-head')?.top, '100px')
|
||||
```
|
||||
|
||||
Your `.cat-head` selector should have a `left` property set to `100px`. Make sure you add a semicolon.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document)?.getStyle('.cat-head')?.left === '100px')
|
||||
assert.equal(new __helpers.CSSHelp(document)?.getStyle('.cat-head')?.left, '100px')
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user