Skip to content

Commit 37bda88

Browse files
pqCommit Queue
authored and
Commit Queue
committed
[wildcards] organize imports test
See: #55681 Change-Id: Iedffc92f6650fc6bd57672bad94c83acd54d26a0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/381381 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Phil Quitslund <[email protected]>
1 parent 30a720b commit 37bda88

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pkg/analysis_server/test/src/services/correction/fix/organize_imports_test.dart

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,26 @@ void f(Stream<String> args) { }
5757
import 'dart:async';
5858
import 'dart:io';
5959
60+
void f(Stream<String> args) { }
61+
''');
62+
}
63+
64+
Future<void> test_organizeImports_wildcards() async {
65+
await resolveTestCode('''
66+
//ignore_for_file: unused_import
67+
import 'dart:io' as _;
68+
import 'dart:math' as math;
69+
70+
import 'dart:async';
71+
72+
void f(Stream<String> args) { }
73+
''');
74+
await assertHasFix('''
75+
//ignore_for_file: unused_import
76+
import 'dart:async';
77+
import 'dart:io' as _;
78+
import 'dart:math' as math;
79+
6080
void f(Stream<String> args) { }
6181
''');
6282
}

0 commit comments

Comments
 (0)