Skip to content

Commit

Permalink
fix(curriculum): allow additional whitespace in tests (#54655)
Browse files Browse the repository at this point in the history
  • Loading branch information
katereverie committed May 6, 2024
1 parent 2e270a5 commit 25eeb14
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ You should access the `innerHTML` of `authorContainer` and set it to a `p` eleme


```js
assert.match(code, /authorContainer\.innerHTML\s*=\s*(`|"|')<p.*>.*<\/p>\1/)
assert.match(code, /authorContainer\.innerHTML\s*=\s*(`|"|')\s*<p.*>.*<\/p>\s*\1/)
```

Your `p` element should have the class `error-msg`.

```js
assert.match(code, /(`|"|')<p\s+class\s*=\s*("|')error-msg\2>/)
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>\1\s*;?/)
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*;?/)
```


Expand Down

0 comments on commit 25eeb14

Please sign in to comment.