fix: remove unused vars from the test execution scope

This commit is contained in:
Valeriy
2018-12-22 23:12:23 +03:00
committed by Stuart Taylor
parent 3654f2a971
commit 63d0a2682f
2 changed files with 10 additions and 18 deletions

View File

@@ -24,7 +24,7 @@ Log the message <code>'Now I know React and Redux!'</code> to the console.
```yml
tests:
- text: The message <code>Now I know React and Redux!</code> should be logged to the console.
testString: assert(editor.getValue().includes('console.log("Now I know React and Redux!")') || editor.getValue().includes('console.log(\'Now I know React and Redux!\')'), 'The message <code>Now I know React and Redux!</code> should be logged to the console.');
testString: getUserInput => assert(/console.log\(("|')Now I know React and Redux!\1\)/.test(getUserInput('index')), 'The message <code>Now I know React and Redux!</code> should be logged to the console.');
```