mirror of
https://github.com/foss42/apidash.git
synced 2025-06-05 10:20:44 +08:00
Remove mockito
This commit is contained in:
@ -729,14 +729,6 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.0.0"
|
version: "3.0.0"
|
||||||
mockito:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: mockito
|
|
||||||
sha256: "6841eed20a7befac0ce07df8116c8b8233ed1f4486a7647c7fc5a02ae6163917"
|
|
||||||
url: "https://pub.dev"
|
|
||||||
source: hosted
|
|
||||||
version: "5.4.4"
|
|
||||||
mpv_dart:
|
mpv_dart:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -55,7 +55,6 @@ dependencies:
|
|||||||
dart_style: ^2.3.4
|
dart_style: ^2.3.4
|
||||||
json_text_field: ^1.1.0
|
json_text_field: ^1.1.0
|
||||||
csv: ^5.1.1
|
csv: ^5.1.1
|
||||||
mockito: ^5.4.4
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
@ -10,9 +10,6 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
import 'package:mockito/mockito.dart';
|
|
||||||
|
|
||||||
class MockPathProviderPlatform extends Mock implements MethodChannel {}
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
TestWidgetsFlutterBinding.ensureInitialized();
|
TestWidgetsFlutterBinding.ensureInitialized();
|
||||||
@ -20,7 +17,6 @@ void main() {
|
|||||||
setUp(() async {
|
setUp(() async {
|
||||||
const MethodChannel channel =
|
const MethodChannel channel =
|
||||||
MethodChannel('plugins.flutter.io/path_provider');
|
MethodChannel('plugins.flutter.io/path_provider');
|
||||||
final MockPathProviderPlatform mock = MockPathProviderPlatform();
|
|
||||||
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
||||||
.setMockMethodCallHandler(channel, (MethodCall methodCall) async {
|
.setMockMethodCallHandler(channel, (MethodCall methodCall) async {
|
||||||
if (methodCall.method == 'getApplicationDocumentsDirectory') {
|
if (methodCall.method == 'getApplicationDocumentsDirectory') {
|
||||||
@ -70,6 +66,7 @@ void main() {
|
|||||||
expect(find.byType(HomePage), findsNothing);
|
expect(find.byType(HomePage), findsNothing);
|
||||||
expect(find.byType(SettingsPage), findsNothing);
|
expect(find.byType(SettingsPage), findsNothing);
|
||||||
});
|
});
|
||||||
|
|
||||||
testWidgets(
|
testWidgets(
|
||||||
"Dashboard should display SettingsPage when navRailIndexStateProvider is 2",
|
"Dashboard should display SettingsPage when navRailIndexStateProvider is 2",
|
||||||
(WidgetTester tester) async {
|
(WidgetTester tester) async {
|
||||||
|
Reference in New Issue
Block a user