
上QQ阅读APP看书,第一时间看更新
Arrange
Also known as the context of a unit test, Arrange includes anything that exists as a prerequisite of the test. This includes everything from parameter values, stored in variables to improve readability, all the way to configuring values in a mock database to be injected into your application when the test is run.
For more information on Mocking, see Chapter 7, Setting Up the JavaScript Environment, the Abstract Third Party Software and Test Double Types sections.