fix(curriculum): update test to allow flexible spacing in error message assertion (#59225)

This commit is contained in:
agilan11
2025-03-12 18:25:17 +05:30
committed by GitHub
parent 5e2ff8fa3c
commit ebde790dc7
2 changed files with 2 additions and 2 deletions

View File

@@ -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*;?/)
```

View File

@@ -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*;?/)
```