mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): use specific asserts in recipe page lab (#59856)
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ assert.match(code, /<\s*meta[\s\S]+?charset\s*=\s*('|")UTF-8\1/i);
|
||||
You should have a `body` element within your `html` element.
|
||||
|
||||
```js
|
||||
assert(code.match(/<\s*html[\s\S]*>[\s\S]*<\s*head\s*>[\s\S]*<\/\s*head\s*>[\s\S]*<\s*body\s*>[\s\S]*<\/\s*body\s*>[\s\S]*<\/\s*html\s*>/i));
|
||||
assert.match(code, /<\s*html[\s\S]*>[\s\S]*<\s*head\s*>[\s\S]*<\/\s*head\s*>[\s\S]*<\s*body\s*>[\s\S]*<\/\s*body\s*>[\s\S]*<\/\s*html\s*>/i);
|
||||
```
|
||||
|
||||
You should have an `h1` element with the name of your recipe.
|
||||
|
||||
Reference in New Issue
Block a user