1. 程式人生 > 實用技巧 >我司編寫Angular單元測試的一些非正式規範

我司編寫Angular單元測試的一些非正式規範

pull request title一定要加上feat的字首:

before:

after:


in test you should do it like that
16:13
variables are seperate
16:13
any function etc are separate
16:13
and expects are separate
16:14
it’s easier to read the code this way

要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":