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