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.
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.