Skip to content

Commit

Permalink
fix(challenges): fix a test case in an Applied Accessibility
Browse files Browse the repository at this point in the history
fix a test case in Applied Accessibility: Improve Accessibility of Audio Content with the audio
Element
  • Loading branch information
huyenltnguyen authored and raisedadead committed Jun 29, 2018
1 parent 46fcf43 commit 4c0d587
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@
"text":
"Make sure your <code>audio</code> element has a closing tag.",
"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":
Expand Down

0 comments on commit 4c0d587

Please sign in to comment.