fix(challenges): fix a test case in an Applied Accessibility
fix a test case in Applied Accessibility: Improve Accessibility of Audio Content with the audio Element
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
46fcf434cd
commit
4c0d587784
@ -521,7 +521,7 @@
|
|||||||
"text":
|
"text":
|
||||||
"Make sure your <code>audio</code> element has a closing tag.",
|
"Make sure your <code>audio</code> element has a closing tag.",
|
||||||
"testString":
|
"testString":
|
||||||
"assert(code.match(/<\\/audio>/g) && code.match(/<audio controls>/g) && code.match(/<\\/audio>/g).length === code.match(/<audio controls>/g).length, 'Make sure your <code>audio</code> element has a closing tag.');"
|
"assert(code.match(/<\\/audio>/g).length === 1 && code.match(/<audio.*>[\\s\\S]*<\\/audio>/g), 'Make sure your <code>audio</code> element has a closing tag.');"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text":
|
"text":
|
||||||
|
Reference in New Issue
Block a user