Index: pkg/matcher/test/test_utils.dart |
diff --git a/pkg/unittest/test/test_utils.dart b/pkg/matcher/test/test_utils.dart |
similarity index 91% |
copy from pkg/unittest/test/test_utils.dart |
copy to pkg/matcher/test/test_utils.dart |
index 783f71ba91839e7310c9a119de5fb3e36d5906c2..fba527afbc451f1a8ba2dd8d232a0a19489eed57 100644 |
--- a/pkg/unittest/test/test_utils.dart |
+++ b/pkg/matcher/test/test_utils.dart |
@@ -4,7 +4,8 @@ |
library test_utils; |
-import 'package:unittest/unittest.dart'; |
+import 'package:matcher/matcher.dart'; |
+import 'package:unittest/unittest.dart' as ut; |
import 'dart:async'; |
@@ -41,7 +42,7 @@ void shouldFail(value, Matcher matcher, expected, {bool isAsync: false}) { |
} |
if (isAsync) { |
- Timer.run(expectAsync(afterTest)); |
+ Timer.run(ut.expectAsync(afterTest)); |
} else { |
afterTest(); |
} |
@@ -57,7 +58,7 @@ void shouldPass(value, Matcher matcher, {bool isAsync: false}) { |
expect(errorCount, equals(0)); |
} |
if (isAsync) { |
- Timer.run(expectAsync(afterTest)); |
+ Timer.run(ut.expectAsync(afterTest)); |
} else { |
afterTest(); |
} |