Skip to content

Commit 1229e36

Browse files
committed
update docusaurus
1 parent 57ff20e commit 1229e36

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
@@ -1112,7 +1112,7 @@ Automated test comes with benefits that helps us write better code and makes it
11121112
- Assert - Validate the outcome against expectations. **Strive for minimal number of asserts**.
11131113
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.
11141114
- As mentioned in [function conventions](#functions) try to keep them pure, and impure one small and focused.
1115-
It will make them easy to test, by passing args and observing return values, since we will **rarely need to mock dependencies**.
1115+
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.
11171117
E.g. given some user input, they receive the expected output for a process.
11181118
- Make tests as isolated as possible, where they don't depend on order of execution and should run independently with its own local storage, session storage, data, cookies etc.

0 commit comments

Comments
 (0)