Do I need to pass an object just to satisfy the method signature?
→ Use a Dummy
Do I need to simulate return values (e.g., from a repository)?
→ Use a Stub
Do I need to simulate real logic or store data?
→ Use a Fake
Wednesday, July 30, 2025
Dummy Vs Stub Vs fake
Subscribe to:
Posts (Atom)
Javascript module
JavaScript Modules (ES6) let you split code into multiple files and reuse code cleanly. Main keywords: export → make something available...
-
Suppose we have a class which have a dependency which will provide some data and based on those data we will do some work, public class Som...
-
Function expression: Expression will return a result immediately . ex:2+3 will return 5.so this is a expression. similarly , assume a funct...
-
javascript is a prototype based programming language that means inheritance is possible by using prototype.Every object has this prototype...