Skip to content

Commit

Permalink
[wildcards] organize imports test
Browse files Browse the repository at this point in the history
See: #55681

Change-Id: Iedffc92f6650fc6bd57672bad94c83acd54d26a0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/381381
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
  • Loading branch information
pq authored and Commit Queue committed Aug 19, 2024
1 parent 30a720b commit 37bda88
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,26 @@ void f(Stream<String> args) { }
import 'dart:async';
import 'dart:io';
void f(Stream<String> args) { }
''');
}

Future<void> test_organizeImports_wildcards() async {
await resolveTestCode('''
//ignore_for_file: unused_import
import 'dart:io' as _;
import 'dart:math' as math;
import 'dart:async';
void f(Stream<String> args) { }
''');
await assertHasFix('''
//ignore_for_file: unused_import
import 'dart:async';
import 'dart:io' as _;
import 'dart:math' as math;
void f(Stream<String> args) { }
''');
}
Expand Down

0 comments on commit 37bda88

Please sign in to comment.