1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
thesis_shop/test/cart_increment_test.dart

13 lines
464 B

import 'package:flutter_test/flutter_test.dart';
import 'package:thesis_shop/redux/actions/actions.dart';
import 'package:thesis_shop/redux/store.dart';
import 'product_service_mock.dart';
void main() {
test('cart increment test', () {
final store = createStore(productService: MockedProductService());
store.dispatch(IncrementProductAction(product: demoProducts.first));
expect(store.state.productQuantities[demoProducts.first.title], 1);
});
}