Open domenic opened 10 years ago
recent versions of mocha
and chaijs
can be used to write tests in ES6 directly.
If the task is to write a function, we can use .toString()
in order to ensure using an appropriate approach.
For example: in an arrow function exercise we can check if the string =>
is present in the solution and if the keyword function
is not.
So far we have:
Are there other possibilities? E.g. it seems dumb to make them test destructuring this way.