mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-12 19:00:43 -04:00
fix(curriculum): update test to allow flexible spacing in error message assertion (#59225)
This commit is contained in:
@@ -41,7 +41,7 @@ assert.match(code, /(`|"|')\s*<p\s+class\s*=\s*("|')error-msg\2>/)
|
||||
Your `p` element should have the text `"There was an error loading the authors"`.
|
||||
|
||||
```js
|
||||
assert.match(code, /(`|"|')<p\s+class\s*=\s*("|')error-msg\2>There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/)
|
||||
assert.match(code, /(`|"|')<p\s+class\s*=\s*("|')error-msg\2>\s*There\s+was\s+an\s+error\s+loading\s+the\s+authors\s*<\/p>\s*\1\s*;?/)
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ assert.match(code, /(`|"|')\s*<p\s+class\s*=\s*("|')error-msg\2>/)
|
||||
Your `p` element should have the text `"There was an error loading the authors"`.
|
||||
|
||||
```js
|
||||
assert.match(code, /(`|"|')<p\s+class\s*=\s*("|')error-msg\2>There\s+was\s+an\s+error\s+loading\s+the\s+authors<\/p>\s*\1\s*;?/)
|
||||
assert.match(code, /(`|"|')<p\s+class\s*=\s*("|')error-msg\2>\s*There\s+was\s+an\s+error\s+loading\s+the\s+authors\s*<\/p>\s*\1\s*;?/)
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user