You are viewing a single comment's thread from:

RE: Steem - Reduce the minimum comment interval

in #utopian-io6 years ago

Thank you for your contribution. This is great, I think even 3 seconds is a bit longer for some fast typists or for really short comments. I am also curious that how do you unit test this kind of changes?

Your contribution has been evaluated according to Utopian rules and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post,Click here


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Sort:  

Hi! Sincerely I don't even think there are unit tests written for this kind of code since it involves asserts from static methods and things that can not be mocked, but I may be wrong also. I am at the beginning with developments on the Steem blockchain, so I am still getting used with the project.

From my experience with other projects (from which I had worked on a few with more than 90% code coverage) I don't think that this method was ever designed to be tested within a unit test. Maybe a set of integration tests would do the job, but I am not that sure about them also.

Thanks so much for the review!

Coin Marketplace

STEEM 0.21
TRX 0.14
JST 0.030
BTC 69508.29
ETH 3366.22
USDT 1.00
SBD 2.74