Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[quick-actions] Revert migrating integration tests to NNBD #3967

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// @dart = 2.9
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:quick_actions/quick_actions.dart';
Expand All @@ -11,7 +12,7 @@ void main() {

testWidgets('Can set shortcuts', (WidgetTester tester) async {
final QuickActions quickActions = QuickActions();
await quickActions.initialize((String shortcutType) => {});
await quickActions.initialize(null);

const ShortcutItem shortCutItem = ShortcutItem(
type: 'action_one',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// @dart=2.9

import 'package:integration_test/integration_test_driver.dart';

Future<void> main() => integrationDriver();
4 changes: 3 additions & 1 deletion packages/quick_actions/quick_actions/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mockito: ^5.0.0
integration_test:
sdk: flutter
mockito: ^5.0.0-nullsafety.7
pedantic: ^1.11.0
plugin_platform_interface: ^2.0.0