Fix lib/mirrors/library_uri_package_test.
It was importing the args package which has not yet been migrated to
null safety in the SDK repo. It uses that package mostly arbitrarily
so I switched it to use expect instead.
Change-Id: I1550a830a157c376219ebb64c97f3a329af6e75b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162802
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Leaf Petersen <leafp@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
diff --git a/tests/lib/mirrors/library_uri_package_test.dart b/tests/lib/mirrors/library_uri_package_test.dart
index 0116005..e546722 100644
--- a/tests/lib/mirrors/library_uri_package_test.dart
+++ b/tests/lib/mirrors/library_uri_package_test.dart
@@ -2,12 +2,12 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// Test library uri for a library read as a package .
+// Test library uri for a library read as a package.
library MirrorsTest;
import 'dart:mirrors';
-import 'package:args/args.dart';
+import 'package:expect/expect.dart';
import 'package:async_helper/async_minitest.dart';
testLibraryUri(var value, Uri expectedUri) {
@@ -26,6 +26,6 @@
var mirrors = currentMirrorSystem();
test("Test package library uri", () {
testLibraryUri(
- new ArgParser(), Uri.parse('package:args/src/arg_parser.dart'));
+ ExpectException(""), Uri.parse('package:expect/expect.dart'));
});
}