Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kipruto <[email protected]>
  • Loading branch information
kelvinkipruto committed Jan 30, 2024
1 parent 3422352 commit 1653b8b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/dart.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
# https://github.com/dart-lang/setup-dart/blob/main/README.md
# - uses: dart-lang/setup-dart@v1
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
- uses: subosito/flutter-action@v2

- name: Install dependencies
run: dart pub get
Expand All @@ -39,4 +40,4 @@ jobs:
# package:test for this step to succeed. Note that Flutter projects will
# want to change this to 'flutter test'.
- name: Run tests
run: dart test
run: flutter test
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.1"
version: "0.0.2"
async:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
test: ^1.24.3

flutter:
plugin:
Expand Down
2 changes: 1 addition & 1 deletion test/apps_list_method_channel_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void main() {
.setMockMethodCallHandler(
channel,
(MethodCall methodCall) async {
return '42';
return Future.value([]);
},
);
});
Expand Down
1 change: 1 addition & 0 deletions test/apps_list_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:apps_list/apps_list.dart';
import 'package:apps_list/apps_list_platform_interface.dart';
import 'package:apps_list/apps_list_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'dart:ui';

class MockAppsListPlatform
with MockPlatformInterfaceMixin
Expand Down

0 comments on commit 1653b8b

Please sign in to comment.