1
0
Fork 0
 
 
 
 
 
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));
});
}