fix(curriculum): css and html test issues (#42045)
* fix: css and html issues * fix: issues with css test * fix: allow spaces in solution css * fix: css tests for use-rgb-to-mix-colors
This commit is contained in:
@ -21,7 +21,7 @@ Use the `attr()` method to add a class of `bar` to all the `rect` elements. This
|
||||
Your `rect` elements should have a class of `bar`.
|
||||
|
||||
```js
|
||||
assert($('rect').attr('class') == 'bar');
|
||||
assert($('rect').attr('class').trim().split(/\s+/g).includes('bar'));
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
@ -27,7 +27,7 @@ Add the `attr()` method to the code in the editor and put a class of `bar` on th
|
||||
Your `div` elements should have a class of `bar`.
|
||||
|
||||
```js
|
||||
assert($('div').attr('class') == 'bar');
|
||||
assert($('div').attr('class').trim().split(/\s+/g).includes('bar'));
|
||||
```
|
||||
|
||||
Your code should use the `attr()` method.
|
||||
|
Reference in New Issue
Block a user