mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-15 01:00:32 -05:00
fix(curriculum): update test to accept both single and double quotes (#52828)
This commit is contained in:
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user