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.
10 lines
358 B
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));
|
|
});
|
|
}
|
|
|