-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add CatalystDataGatewayRepository docs (#388)
* test: Fix tests after cat-gateway update. * docs: Add `CatalystDataGatewayRepository` usage examples. * docs: Move docs from README to code comment. * test: Update `CatalystDataGatewayRepository` tests. * test: Use Fake instead of Mock. * chore: Fix Markdown errors. * chore: Explicit use of `HttpStatus` codes.
- Loading branch information
Showing
5 changed files
with
197 additions
and
316 deletions.
There are no files selected for viewing
22 changes: 0 additions & 22 deletions
22
catalyst_voices/packages/catalyst_voices_repositories/README.md
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 |
---|---|---|
@@ -1,23 +1 @@ | ||
# Catalyst Voices Repositories | ||
|
||
## Catalyst Data Gateway Repository | ||
|
||
### Tests | ||
|
||
When extending the `CatalystDataGatewayRepository` it is necessary to generate | ||
proper mocks to have them available in tests. | ||
To do that we need to run | ||
|
||
```sh | ||
flutter pub run build_runner build --delete-conflicting-outputs | ||
``` | ||
|
||
or | ||
|
||
```sh | ||
dart run build_runner build --delete-conflicting-outputs | ||
``` | ||
|
||
in the Catalyst Voices Repositories package root. | ||
The decorator `@GenerateNiceMocks` provided by mockito is used to indicate the | ||
repository to generate the mocks for. |
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.