fix(learn): change test order to test for the value after execution has finished (#39363)

Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>
This commit is contained in:
Mike Robinson
2020-08-04 13:48:50 -06:00
committed by GitHub
parent 08d4811df3
commit e7d2028bba

View File

@ -27,7 +27,7 @@ Fill in the code for the function <code>incrementer</code> so it returns the val
```yml
tests:
- text: Your function <code>incrementer</code> should not change the value of <code>fixedValue</code> (which is <code>4</code>).
testString: assert(fixedValue === 4);
testString: incrementer(); assert(fixedValue === 4);
- text: Your <code>incrementer</code> function should return a value that is one larger than the <code>fixedValue</code> value.
testString: const newValue = incrementer(); assert(newValue === 5);