Closed pablogq closed 9 years ago
The problem was the arguments of the callback that you must provide to the Promise constructor was backwards.
The first argument is the resolve function and the second the reject function. In the code was first reject and second resolve.
Now the three tests are green :)
The diff ui of github will display a lot of changes, this is due my text editor right trims the document lines when I save it.
Awesome! Was because I reused the original code which was in this order :P
Yiiihaaaa :) So excited!!!
The problem was the arguments of the callback that you must provide to the Promise constructor was backwards.
The first argument is the resolve function and the second the reject function. In the code was first reject and second resolve.
Now the three tests are green :)
The diff ui of github will display a lot of changes, this is due my text editor right trims the document lines when I save it.