Unit Testing - What not to test

后端 未结 9 1155
悲哀的现实
悲哀的现实 2020-12-14 07:34

I have gone through a number posts on stackoverflow and numerous articles about Unit Tests. I am just trying to figure out that what I have understood is right.

9条回答
  •  一个人的身影
    2020-12-14 08:00

    Wait, by JS you mean JavaScript? I assume you are referring to client side validation then? You should never assume the client validates anything when building a website. JavaScript can be disabled, pages can be altered or faked, etc.

提交回复
热议问题