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.
Codewars does support Promises now, which means you can just put any code in there (I used
var a = 1;
) and it will work. Unless you want to rework this kata so that it forces you to write your own implementation, we will likely want to retire this kata.Nice intro to Promises. I can see one or two follow-ups to implement the rest of the api. :-)
There really should be a test for the rejected, non-immediate case.
Thanks for the kata.