Arrange-Act-Assert Pattern
Multiple Choice Easy
Question
In the Arrange-Act-Assert pattern, what happens in the 'Act' phase?
Hint
Arrange = setup, Act = do the thing, Assert = check the result.
Explanation
The AAA pattern has three phases: Arrange (set up data and dependencies), Act (invoke the code under test and capture the output), and Assert (verify the output matches the expected value). The Act phase is where the actual behavior being tested is triggered.
Related Resources
Related Lessons
- Unit Testing
Writing effective unit tests.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.