fix(curriculum): improve test regex (#52710)

This commit is contained in:
Krzysztof G
2023-12-23 06:37:13 +01:00
committed by GitHub
parent 67faed73d0
commit fe6a101ee8
@@ -14,7 +14,7 @@ Within the button element in the `renderSongs` function, add an `onclick` attrib
You should add an `onclick` attribute as the first attribute of the delete button and pass in `deleteSong(${song.id})`.
```js
assert.match(code, /<button\s+onclick=('|")deleteSong\(\$\{song\.id\}\)('|")\s*class=('|")playlist-song-delete('|")\s*aria-label=('|")Delete\s*\$\{song\.title\}('|")>/)
assert.match(code, /<button\s+onclick=('|")deleteSong\(\$\{song\.id\}\)\1\s*class=('|")playlist-song-delete\2\s*aria-label=('|")Delete\s*\$\{song\.title\}\3\s*>/)
```
# --seed--