Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
var -> const ;-)
Bug in line 9, see fork...
Great, thx for the fast reply!
It is an old CW bug. Fixed, once more... Thanks for your post!
In the typescript version the example tests fail, because of invalid reference syntax.
It must be:
/// <reference path="/runner/typings/mocha/index.d.ts"/>
/// <reference path="/runner/typings/chai/index.d.ts"/>
(caution, its sanitized)
Very nice Kata, thank you very much!
The tests need improvement, though. Multiple assertions per Test are an Anti-pattern.
Its hard to find out which assertion fails, and the test case stops after the first fail.
Every Test.it should really by a Test.describe, and every assertion should be wrapped in its own Test.it.
If someone can show me a way to review my test cases for this Kata I could give you an example of what I mean...
Yes, I know its ugly, but I didn't have the leisure to refactor it (yet). :-)
Dafür hab ich die inline comments nicht beachtet :)
Was ist, wenn die Funktion in Fat Arrow Notation angegeben ist? ;-)