-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: simplify building of options in tests
- Replace the global constant `DEFAULT_SYNC_OPTIONS` with a factory function to obtain a new instance of the options object - Rework tests using custom options to start with the default options and modify only the fields relevant in the test. With this improvement in place, when we add a new sync option in the future, existing tests should not need any changes. Signed-off-by: Miroslav Bajtoš <[email protected]>
- Loading branch information
Showing
1 changed file
with
35 additions
and
34 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