-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: failing nutriment persize serving test (#873)
* Adding failing test * Change Serving size to a safe number for all iterations of the product save loop. * Fix for sending "PerSize.serving" nutrients * Consolidated suffix stripping code for nutrient serialization * consolidated tests * Update lib/src/open_food_api_client.dart - import 'package:openfoodfacts/openfoodfacts.dart'; + import 'model/per_size.dart'; Co-authored-by: monsieurtanuki <[email protected]> * Update test/api_save_product_test.dart Co-authored-by: monsieurtanuki <[email protected]> * Update test/api_save_product_test.dart Co-authored-by: monsieurtanuki <[email protected]> * Removed missed "PerSize.serving" test --------- Co-authored-by: monsieurtanuki <[email protected]>
- Loading branch information
1 parent
a353a53
commit 31f9fab
Showing
2 changed files
with
76 additions
and
60 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
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