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:
Ilenia
2022-07-22 16:27:07 +02:00
committed by GitHub
parent 3c74ffcad9
commit 7a0f376391

View File

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