mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-26 08:01:08 -04:00
fix(curriculum): tests can't pass with style tags in step 15 of cafe menu (#46897)
* fix: not allow test to pass with style tags in css file * fix style tags test * Update curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3477aefa51bfc29327200b.md Co-authored-by: Tom <20648924+moT01@users.noreply.github.com> Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
@@ -31,12 +31,10 @@ Your selector should set the `text-align` property to `center`.
|
||||
}
|
||||
```
|
||||
|
||||
You should only have one selector.
|
||||
Your code should not contain the `<style>` tags.
|
||||
|
||||
```js
|
||||
(getUserInput) => {
|
||||
assert(getUserInput('editableContents').match(/text-align:\s*center;?/)?.length === 1);
|
||||
}
|
||||
assert.isFalse(/<\/html>(\n|.)*<\/?\s*style\s*>/.test(code));
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user