diff --git a/pkg/js_ast/pubspec.yaml b/pkg/js_ast/pubspec.yaml index accf87642d7..6994e78abc7 100644 --- a/pkg/js_ast/pubspec.yaml +++ b/pkg/js_ast/pubspec.yaml @@ -3,6 +3,6 @@ author: Dart Team description: Library creating and printing JavaScript ASTs. homepage: http://www.dartlang.org dev_dependencies: - unittest: ">=0.9.0 <0.10.0" + test: '^0.12.29' environment: sdk: ">=0.8.10+6 <2.0.0" diff --git a/pkg/js_ast/test/printer_callback_test.dart b/pkg/js_ast/test/printer_callback_test.dart index 6483d2854e2..7d8fb308851 100644 --- a/pkg/js_ast/test/printer_callback_test.dart +++ b/pkg/js_ast/test/printer_callback_test.dart @@ -9,7 +9,7 @@ library js_ast.printer.callback_test; import 'package:js_ast/js_ast.dart'; -import 'package:unittest/unittest.dart'; +import 'package:test/test.dart'; enum TestMode { INPUT, @@ -246,5 +246,7 @@ class Context extends SimpleJavaScriptPrintingContext { } void main() { - DATA.forEach(check); + test('printer callback test', () { + DATA.forEach(check); + }); } diff --git a/pkg/js_ast/test/string_escape_test.dart b/pkg/js_ast/test/string_escape_test.dart index 118225b491f..9277ed658c3 100644 --- a/pkg/js_ast/test/string_escape_test.dart +++ b/pkg/js_ast/test/string_escape_test.dart @@ -6,7 +6,7 @@ library js_ast.string_escape_test; import 'package:js_ast/js_ast.dart'; import 'package:js_ast/src/characters.dart'; -import 'package:unittest/unittest.dart'; +import 'package:test/test.dart'; const int $LCURLY = $OPEN_CURLY_BRACKET; const int $RCURLY = $CLOSE_CURLY_BRACKET;