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.
Thanks! I'm planning on making another one soon :)
Thanks, I'm glad you enjoyed it!
Done :) Thanks for the suggestion.
Ah, my bad. Looks like the example test case wasn't wrapped in a describe. It should work now.
That's strange, it validates for me, and it looks like every Test.it() is correctly nested in a Test.Describe.
Does the error say if it's failing for you on the Random Tests or on the "Returns correct boss orders" tests?
I'll try to improve them. Thanks for the feedback.
Yes, I am using parseInt, and I was not aware of that behavior.
Thanks for the feedback. I will need to rethink this kata.
I'm trying to create a kata, and I'd like to prevent the users from accessing Function.prototype.bind. However, I can't seem to redefine this function in the 'Preloaded' section without generating an error, but I can redfine other stuff (like Array.prototpe.indexOf, for example).
Is it simply not possible to disable bind for a kata?
Edit: I guess I could probably just spy on bind in the tests, and fail the test if it's called.
Thank you for the feedback, I've added some random tests.
Instructions aren't very clear. Also, sometimes param and arr seem to be mixed up (e.g. param is an array instead of arr). If this is expected, it would be helpful if were spelled out in the instructions. Otherwise, this was a good kata.
has anyone else had trouble with throwing an error in the Javascript kata?
I think I'm catching it properly everywhere, but the kata is reporting 52 passed tests, 0 failed, 1 error. So it seems like the error is getting through somewhere?