fix(challenge-test): make semi-colon optional (#36704)
This commit is contained in:
		| @@ -39,7 +39,7 @@ tests: | |||||||
|   - text: <code>functionWithArgs(7,9)</code> should output <code>16</code> |   - text: <code>functionWithArgs(7,9)</code> should output <code>16</code> | ||||||
|     testString: if(typeof functionWithArgs === "function") { capture(); functionWithArgs(7,9); uncapture(); } assert(logOutput == 16); |     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. |   - 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)); | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user