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.
I can't update the tests to be more of a contains assert and it's an exact match.
What that means is in the child don't put spaces before and/or after the curly bracers.
Thanks for submitting the TS translation.
Appologies for not doing it sooner, I've been away/inactive on Codewars.
You need to import react in both solution and test case code views.
Don't think Jest is available in codewars.
See the package.json for available testing frameworks: https://github.com/codewars/codewars-runner-cli/blob/master/package.json
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hey, thanks for your feedback.
I'm not sure I fully understand what part you're saying is not good practice. Could you clarify with an example please?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Now fixed.
I think you have solved the kata correctly, even using
withPropsfrom recompose.The only thing here is you have not learned to build your own HOC as recompose does that for you.
The point of this kata is to help with getting started building your own HOC.
That is good feedback, perhaps have a couple tests for the fake models to see if
withPriceModelcan handle different price increases.Fixed this. Added in tests to give better feedback for initial test run.
I've updated the assert descriptions, let me know if that helps you.
Otherwise it might be best to show some code and I will try help.
I've added in random generated values for some props expected to be passed through.
What I will do is put descriptions in the assert of what is expected and this might help.
Added a test to check
EasterEggreturns a li element and has the name inside.Loading more items...