File tree Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -729,14 +729,6 @@ packages:
729
729
url: "https://pub.dev"
730
730
source: hosted
731
731
version: "3.0.0"
732
- mockito:
733
- dependency: "direct main"
734
- description:
735
- name: mockito
736
- sha256: "6841eed20a7befac0ce07df8116c8b8233ed1f4486a7647c7fc5a02ae6163917"
737
- url: "https://pub.dev"
738
- source: hosted
739
- version: "5.4.4"
740
732
mpv_dart:
741
733
dependency: transitive
742
734
description:
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ dependencies:
55
55
dart_style : ^2.3.4
56
56
json_text_field : ^1.1.0
57
57
csv : ^5.1.1
58
- mockito : ^5.4.4
59
58
60
59
dev_dependencies :
61
60
flutter_test :
Original file line number Diff line number Diff line change @@ -10,17 +10,13 @@ import 'package:flutter/material.dart';
10
10
import 'package:flutter/services.dart' ;
11
11
import 'package:flutter_riverpod/flutter_riverpod.dart' ;
12
12
import 'package:flutter_test/flutter_test.dart' ;
13
- import 'package:mockito/mockito.dart' ;
14
-
15
- class MockPathProviderPlatform extends Mock implements MethodChannel {}
16
13
17
14
void main () {
18
15
TestWidgetsFlutterBinding .ensureInitialized ();
19
16
20
17
setUp (() async {
21
18
const MethodChannel channel =
22
19
MethodChannel ('plugins.flutter.io/path_provider' );
23
- final MockPathProviderPlatform mock = MockPathProviderPlatform ();
24
20
TestDefaultBinaryMessengerBinding .instance.defaultBinaryMessenger
25
21
.setMockMethodCallHandler (channel, (MethodCall methodCall) async {
26
22
if (methodCall.method == 'getApplicationDocumentsDirectory' ) {
@@ -70,6 +66,7 @@ void main() {
70
66
expect (find.byType (HomePage ), findsNothing);
71
67
expect (find.byType (SettingsPage ), findsNothing);
72
68
});
69
+
73
70
testWidgets (
74
71
"Dashboard should display SettingsPage when navRailIndexStateProvider is 2" ,
75
72
(WidgetTester tester) async {
You can’t perform that action at this time.
0 commit comments