mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-28 13:00:31 -04:00
fix(curriculum): update assertions to use assert.equal (#60013)
This commit is contained in:
committed by
GitHub
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--
|
||||
|
||||
Reference in New Issue
Block a user