fix(challenge-test): make semi-colon optional (#36704)

This commit is contained in:
Tom 2019-08-27 19:52:47 -05:00 committed by Parth Parth
parent 742a21345d
commit 07b38d02b3

View File

@ -39,7 +39,7 @@ tests:
- text: <code>functionWithArgs(7,9)</code> should output <code>16</code>
testString: if(typeof functionWithArgs === "function") { capture(); functionWithArgs(7,9); uncapture(); } assert(logOutput == 16);
- text: Call <code>functionWithArgs</code> with two numbers after you define it.
testString: assert(/^\s*functionWithArgs\s*\(\s*\d+\s*,\s*\d+\s*\)\s*;/m.test(code));
testString: assert(/^\s*functionWithArgs\s*\(\s*\d+\s*,\s*\d+\s*\)\s*/m.test(code));
```