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.
14 lines
398 B
14 lines
398 B
// ignore_for_file: invalid_use_of_protected_member
|
|
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:thesis_shop/stores/cart_store.dart';
|
|
|
|
import 'product_service_mock.dart';
|
|
|
|
void main() {
|
|
test('test cart store', () {
|
|
final cartStore = CartStore();
|
|
cartStore.increaseAmountOfProduct(demoProducts.first);
|
|
expect(cartStore.state[demoProducts.first.title], 1);
|
|
});
|
|
}
|
|
|