fix(curriculum): update test to accept both single and double quotes (#52828)

This commit is contained in:
Soham Tembhurne
2023-12-31 01:29:25 +05:30
committed by GitHub
parent 5321a56a92
commit 41f4725cd1

View File

@@ -34,7 +34,7 @@ assert.match(code, /playButton\.setAttribute\(\s*('|")aria-label\1/)
Your `setAttribute` method should have ``song?.title ? `Play ${song.title}` : "Play"`` as the second argument.
```js
assert.match(code, /playButton\.setAttribute\(\s*('|")aria-label\1,\s*song\?\.title\s*\?\s*`Play\s*\$\{song\.title\}`\s*:\s*\1Play\1\s*\);?\s*/)
assert.match(code, /playButton\.setAttribute\(\s*('|")aria-label\1,\s*song\?\.title\s*\?\s*`Play\s*\$\{song\.title\}`\s*:\s*('|")Play\2\s*\);?\s*/)
```
# --seed--