fix(curriculum): rwd beta update doctype tests (#44829)

This commit is contained in:
Bruce B
2022-01-31 03:57:05 -08:00
committed by GitHub
parent 42384803ed
commit 0f27af6b46

View File

@ -51,10 +51,10 @@ Your `html` element should have a closing tag.
assert(code.match(/<\/html\s*>/));
```
Your `html` element should be below the `DOCTYPE` declaration.
Your `DOCTYPE` declaration should be at the beginning of your HTML.
```js
assert(code.match(/\s*<!DOCTYPE\s+html\s*>(\r?\n)+<\s*html\s*>/gi));
assert(__helpers.removeHtmlComments(code).match(/^\s*<!DOCTYPE\s+html\s*>/i));
```
You should have an opening `head` tag.