dummy dummy
play

Dummy Dummy fetchDiscounts is a side effect, a dummy can replace it - PowerPoint PPT Presentation

Dummy Dummy fetchDiscounts is a side effect, a dummy can replace it for testing Dummy - Unit Test Dummy - Unit Test The object has nothing to do with the assertion of this test Stub Stub The service is not a core piece of our function, just


  1. Dummy

  2. Dummy fetchDiscounts is a side effect, a dummy can replace it for testing

  3. Dummy - Unit Test

  4. Dummy - Unit Test The object has nothing to do with the assertion of this test

  5. Stub

  6. Stub The service is not a core piece of our function, just a side effect

  7. Stub - Unit Test

  8. Stub - unit test The service is stubbed out to focus on the functionality of the method

  9. Fake

  10. Fake Similar to a stub, but replaces functionality

  11. Fake - Jest Setup File

  12. Fake - Jest Setup File

  13. Fake - Unit Test Call the function as normal, and utilize the local storage fake implementation

  14. Mock Call the function as normal and utilize a mock to verify myService.placeOrder was called

  15. Mock Call the function as normal and utilize a mock to verify myService.placeOrder was called

  16. Mock - Unit Test

  17. Mock - Unit Test Make sure that place order has been called, even verify the parameters

  18. Unit Testing Decision Tree

  19. Unit Testing Decision Tree

  20. Unit Testing Decision Tree

  21. Unit Testing Decision Tree

  22. Unit Testing Decision Tree

  23. Unit Testing Decision Tree

  24. Unit Testing Decision Tree

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend