ES6 Challenge tests confused by comments

ES6 Challenge tests confused by comments
0.0 0

#1

The tests for “user did replace var keyword” and “function keyword was not used”
do not work if the original function was commented out instead of deleted.

I have only checked this for these two challenges

  • “Use Arrow Functions to Write Concise Anonymous Functions”
  • “Write Arrow Functions with Parameters”

but I suspect the behaviour will be repeated in any other challenges with similar tests where the students has to rewrite a function or other code using es6 syntax.

I spent a couple of hours trying to figure out if my code was wrong and, if it wasn’t, why it wasn’t working. Others may not be so persistent or have the time to spare and may give up, so please fix this or simply inform people that they need to delete the original code before rewriting it.


#2

ES6 tests and wording on the tests seems to be a mess right now. On a couple of challenges the tests wording could’ve been made way clearer and easier to understand.