Ad
  • Custom User Avatar

    What if your friend is called "daspicy"?

  • Custom User Avatar

    In this kata arguments order constant or can be(type, name)? By final test it is looks like but this is not clear from description

  • Custom User Avatar

    I would not describe "inconsistent" as "super simple".

    If you want to keep it simple, have consistently placed variables for the arguments. You could pass undefined for the name, but don't pass nothing at all.

  • Custom User Avatar

    Ha! I thought of that but just want to keep it super simple. At least for this version!

  • Custom User Avatar

    Thanks for the feedback! I followed your suggestion and used assertDeepEquals instead of assertSimilar. It's my first kata so I'll read about using random tests.

  • Custom User Avatar

    Testing should be improved. More tests, including random ones, and using assertDeepEquals instead of assertSimilar (because the insertion order of properties isn't specified, and Objects don't have a guarateed property order anyway).

  • Custom User Avatar

    How are you going to handle your friend "spicy"?