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.
A lot of people seem to be caught up on the fact that the mocked fetch function doesn't return any HTTP status information with the response. Maybe it would be appropriate to either have the mock fetch function return HTTP status information in its response or add a note to the description that warns users not to bother checking for it.
This comment is hidden because it contains spoiler information about the solution
Oh god. It was really painfully. I sat with this problem for several hours(about 4-5).
As a result, the error was that fetch(url) should ALWAYS come immediately followed by ".then()".
You can't write
But I dont know why. May be it is related with a microtasks stack? If there is anyone who knows, please tell me the topics that I could read
Ok. Nice exercice for Christmas. I try to write a test for errors. It should throw an error if the given joke id does not exist.
This code doesn't work. I think, it get a promise and don't test the method.
How I can implement it ?
The kata's spec is very confusing: beaming people are supposed to be held in the
inTransitproperties. But then beaming 3 people should have them all beamed at once? Then what's the purpose ofinTransitproperties? They are supposed as a temporary storage, which means they shouldn't be tested (not to mention in reality it's not something that's actually needed).As mentioned below, poor kata design.
Hi, @richkotze!
Thanks for a nice kata.
But, what if typeof childten isn't a string?