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.
no!
Does it work?
Any one have written this Kata in functional component.
This comment is hidden because it contains spoiler information about the solution
The test runner calls the unite function.
Yes is not very clear, but at the time when this test was released there wasn't many react katas on codewars, and the test runner was only way able to call the
unite
funtion.Hope that helps :-)
What calls the unite function to toggle true/false?
See https://www.codewars.com/kata/5a667bf8e6be382ecd000102/discuss#5f230692dd2dfc001f5641dd
You can see that in the sample test.
Hey! I'd like to create my own React Kata, but have same troubles... I hope you don't mind questions) How did you manage to add React and Jest to enviroment?
This comment is hidden because it contains spoiler information about the solution
Loved it! More React katas, please!
Because it's inside a
class
, which has its own way of defining function.This comment is hidden because it contains spoiler information about the solution
They are both at index 23 though.
The below test line fails due to expecting a "true" when it is infact false (the array items are different lengths as if 1 digit has been deleted by mistake)
Test.assert_equals(pillow(['yF[CeAAiNihWEmKxJc/NRMVn', 'rMeIa\KAfbjuLiTnAQxNw[XB']), true)