Skip to content

Commit

Permalink
chore: fix require_trailing_commas (felangel#3977)
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel authored Oct 14, 2023
1 parent 8514ee4 commit 5e0fdf5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class App extends StatelessWidget {
create: (_) => CartBloc(
shoppingRepository: shoppingRepository,
)..add(CartStarted()),
)
),
],
child: MaterialApp(
title: 'Flutter Bloc Shopping Cart',
Expand Down
2 changes: 1 addition & 1 deletion lib/cart/view/cart_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class CartPage extends StatelessWidget {
),
),
Divider(height: 4, color: Colors.black),
CartTotal()
CartTotal(),
],
),
),
Expand Down
4 changes: 2 additions & 2 deletions test/cart/bloc/cart_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void main() {
seed: () => CartLoaded(cart: Cart(items: mockItems)),
act: (bloc) => bloc.add(CartItemAdded(mockItemToAdd)),
expect: () => <CartState>[
CartLoaded(cart: Cart(items: [...mockItems, mockItemToAdd]))
CartLoaded(cart: Cart(items: [...mockItems, mockItemToAdd])),
],
verify: (_) {
verify(() => shoppingRepository.addItemToCart(mockItemToAdd)).called(1);
Expand Down Expand Up @@ -112,7 +112,7 @@ void main() {
seed: () => CartLoaded(cart: Cart(items: mockItems)),
act: (bloc) => bloc.add(CartItemRemoved(mockItemToRemove)),
expect: () => <CartState>[
CartLoaded(cart: Cart(items: [...mockItems]..remove(mockItemToRemove)))
CartLoaded(cart: Cart(items: [...mockItems]..remove(mockItemToRemove))),
],
verify: (_) {
verify(
Expand Down

0 comments on commit 5e0fdf5

Please sign in to comment.