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.
Random tests aligned with changes in
attributes
typeEdited, now
attributes
is an object. I'll mark this suggestion as resolved as well as random testsOk, so we could transform the result in this form
Where both
attributes
andcontent
aren't required.I'll wait some feedback from you in order to make changes in Kata
Sorry for the delay. In fact there were some bugs in the random test procedure. I fixed them, now you shouldn't see anymore the
attribute
you describe and stringcontent
as well. I tested the results by searching for/\s\s/g
,/\w\)/g
and/\w\s\)/g
and can't find this behaviour anymore.Added
attributes
in random tests. Unfortunately they are randomstring
so they can be non-valid format for an HTML validation but in terms of testing they are valid.I added a table to describe
element
, now I will complete random tests with attriutes. Later I'll change the way attributes are written but, first of all, a good cigarette!Excuse me, in fact inside the description I don't specify that
content
is anarray
, altought in the example it is shown, I'll edit this now. Function results are alwaysstring
. For your second pointcontent
already is always anarray
. I will revise description to be more clear, thank youIt would be great, for javascript, to have an object to export and then require it in test cases. I have to think about it and how to update description. If you have some ideas about how to do it you're welcome!
Added random tests for elements and content, I'm working on attributes! :-)
Thank you! Hopefully, I will work on random tests today!
You're right, I thought of it once I completed the Kata for publication. However I'm a bit discussed about it because if some wants to add some logic in writing HTML this way it could be easier to store an attribute as a costant, let's say a class, and add it to an array instead of adding it as an object key..
I edited the description at the bottom so there should be no misunderstandings :-)
Yep! I just find code more clean by seeing the self closing tag. I will edit description however! Thank you!