-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc36e7a
commit 9df49a8
Showing
6 changed files
with
643 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Test | ||
|
||
|
||
## How to write a test | ||
|
||
it's essential to adhere to the following principles: | ||
|
||
- Test descriptions should be meaningful. | ||
- Use only English lowercase letters for descriptions. | ||
- Test descriptions is better to start with the verb. | ||
- Provide specific details about the functionality being tested. | ||
- Use descriptive names for tests to facilitate understanding. | ||
- Organize tests logically to enhance readability and navigation. | ||
- Use edge cases and boundary conditions to ensure comprehensive testing. | ||
- You can use `@faker-js/faker` library to create fake data | ||
|
||
|
||
|
||
## Examples | ||
|
||
To clarify the topic, some examples of token sort tests are given: | ||
|
||
good example: | ||
- put pinned tokens first | ||
- put native tokens first | ||
- should be first result when address contains searched term | ||
|
||
bad example: | ||
- pinned tokens are displayed first | ||
- put pinned tokens | ||
- Put Pinned tokens first | ||
- when address contains searched term, should be first | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.