Skip to content

Commit 337e48c

Browse files
committed
update docusaurus
1 parent 0a1ed14 commit 337e48c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/src/pages/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ Automated test comes with benefits that helps us write better code and makes it
11101110
- Arrange - Setup preconditions or the initial state necessary for the test case. Create necessary objects and define input values.
11111111
- Act - Perform the action you want to unit test (invoke a method, triggering an event etc.). **Strive for minimal number of actions**.
11121112
- Assert - Validate the outcome against expectations. **Strive for minimal number of asserts**.
1113-
A rule "unit tests should fail for exactly one reason" doesn't need to apply always, but it can indicate a code smell if there are tests with many asserts in codebase.
1113+
A rule "unit tests should fail for exactly one reason" doesn't need to apply always, but it can indicate a code smell if there are tests with many asserts in a codebase.
11141114
- As mentioned in [function conventions](#functions) try to keep them pure, and impure one small and focused.
11151115
It makes them easy to test, by passing args and observing return values, since we will **rarely need to mock dependencies**.
11161116
- Strive to write tests in a way your app is used by a user, meaning test business logic.

0 commit comments

Comments
 (0)