Skip to content

Commit 7c96e65

Browse files
committed
Fix petitparser version constraint to work with all branches
1 parent 3b4b8f8 commit 7c96e65

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/flutter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ jobs:
3535
- name: Download pub dependencies
3636
run: flutter pub get
3737

38-
- name: Run Flutter tests
39-
run: flutter test
38+
- name: Run tests
39+
run: flutter pub run test

pubspec.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ dependencies:
1717
meta: ^1.1.8
1818
path: ^1.6.4
1919
pedantic: ^1.0.0
20-
petitparser: ^3.0.4
20+
petitparser: '>=2.4.0 <4.0.0'
2121
yaml: ^2.2.1
2222

2323
dev_dependencies:
24-
flutter_test:
25-
sdk: flutter
24+
test: ^1.14.7
2625
mockito: ^4.1.1

test/arbify_api_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'dart:convert';
33
import 'package:arbify/src/api/arbify_api.dart';
44
import 'package:arbify/src/api/export_info.dart';
55
import 'package:dio/dio.dart';
6-
import 'package:flutter_test/flutter_test.dart';
6+
import 'package:test/test.dart';
77
import 'package:mockito/mockito.dart';
88

99
class DioAdapterMock extends Mock implements HttpClientAdapter {}

0 commit comments

Comments
 (0)