fix(curriculum): use specific asserts in recipe page lab (#59856)

This commit is contained in:
Clarence
2025-04-21 21:24:38 +01:00
committed by GitHub
parent d1ce612865
commit 260ef108dc
@@ -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.