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

Commit

Permalink
[quick-actions] Revert migrating integration tests to NNBD (#3967)
Browse files Browse the repository at this point in the history
Reverts the quick_action portion of:
"Move integration test to null safety for multiple plugins (#3932)"
(commit a864de2) since it seems to have
broken XCUITests.
  • Loading branch information
stuartmorgan authored May 24, 2021
1 parent a864de2 commit 52033ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
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

0 comments on commit 52033ca

Please sign in to comment.