Arrange

In this section we are in charge of initializing all the dependencies (real or test doubles) required to simulate the situation we are going to verify in the unit test.
test("the airplane state should be FLYING after takeoff", () => {
/**
* Notice that we clearly mark the Arrange section
* and we initialize in that section all the required
* dependencies for creating the unit that we'll be
* testing (An Airplane instance, in this case)
*/
/// Arrange
const fakeEngine: IEngine = new FakeEngine();
const fakeFuelTank: ITank = new FakeTank();
const airplane: Airplane = new Airplane();
/// Rest of the test
});






