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/product_service_test.dart

10 lines
358 B

import 'package:flutter_test/flutter_test.dart';
import 'package:thesis_shop/service/product_service.dart';
void main() {
test('test if service gets results from server', () async {
final products = await ProductService().fetchProducts();
expect(products.length, greaterThan(0));
expect(products.first.price, greaterThanOrEqualTo(0));
});
}