fix(challenge-test): make semi-colon optional (#36704)
This commit is contained in:
parent
742a21345d
commit
07b38d02b3
@ -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));
|
||||
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user