To be a proper TDD-following developer, it is important to understand some fundamental mechanisms of testing techniques and approaches to testing. In this section, we will walk through a couple of examples of testing techniques and mechanisms that will be leveraged in this book.
This will mostly include the following points:
- Testing doubles with Jasmine spies
- Refactoring the existing tests
- Building patterns
Here are the additional terms that will be used:
- Function under test: This is the function that is being tested. It is also referred to as system under test, object under test, and so on.
- The 3 As (Arrange, Act, and Assert): This is a technique used to set up tests, first described by Bill Wake (http://xp123.com/articles/3a-arrange-act-assert/ ...