domenic / count-to-6

An intro to some ES6 features via a set of self-guided workshops.
Other
326 stars 76 forks source link

Forms of verification #9

Open domenic opened 10 years ago

domenic commented 10 years ago

So far we have:

Are there other possibilities? E.g. it seems dumb to make them test destructuring this way.

riyadhalnur commented 8 years ago

recent versions of mocha and chaijs can be used to write tests in ES6 directly.

zbicin commented 7 years ago

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.