Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1465)

Unified Diff: test/pubspec_test.dart

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/pubspec_test.dart
diff --git a/test/pubspec_test.dart b/test/pubspec_test.dart
index 93c067da959a63d3908768ef1f5b8d1524421644..400c7d0baef17add664643f52206bd7fdc65e361 100644
--- a/test/pubspec_test.dart
+++ b/test/pubspec_test.dart
@@ -12,7 +12,7 @@ import 'package:pub/src/source.dart';
import 'package:pub/src/source/path.dart';
import 'package:pub/src/source_registry.dart';
import 'package:pub_semver/pub_semver.dart';
-import 'package:unittest/unittest.dart';
+import 'package:test/test.dart';
import 'test_pub.dart';
@@ -41,21 +41,20 @@ class MockSource extends Source {
}
main() {
- initConfig();
group('parse()', () {
var sources = new SourceRegistry();
sources.register(new MockSource());
sources.register(new PathSource());
var throwsPubspecException =
- throwsA(new isInstanceOf<PubspecException>('PubspecException'));
+ throwsA(new isInstanceOf<PubspecException>());
Bob Nystrom 2015/06/26 23:04:10 Indent +4.
expectPubspecException(String contents, fn(Pubspec pubspec),
[String expectedContains]) {
var expectation = throwsPubspecException;
if (expectedContains != null) {
expectation = throwsA(allOf(
- new isInstanceOf<PubspecException>('PubspecException'),
+ new isInstanceOf<PubspecException>(),
predicate((error) => error.message.contains(expectedContains))));
}

Powered by Google App Engine
This is Rietveld 408576698