refactor(dart/transform): Use package:guinness in tests
`guinness` is a Dart port of Jasmine. Since the rest of Angular 2 uses Jasmine, use it for the transformer too. Closes #8 Closes #1037 Closes #1000
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
library angular2.test.transform;
|
||||
|
||||
import 'package:unittest/unittest.dart';
|
||||
import 'package:guinness/guinness.dart';
|
||||
import 'package:unittest/unittest.dart' hide expect;
|
||||
import 'package:unittest/vm_config.dart';
|
||||
|
||||
import 'bind_generator/all_tests.dart' as bindGenerator;
|
||||
@ -12,10 +13,12 @@ import 'template_compiler/all_tests.dart' as templateCompiler;
|
||||
|
||||
main() {
|
||||
useVMConfiguration();
|
||||
group('Bind Generator', bindGenerator.allTests);
|
||||
group('Directive Linker', directiveLinker.allTests);
|
||||
group('Directive Processor', directiveProcessor.allTests);
|
||||
group('Reflection Remover', reflectionRemover.allTests);
|
||||
group('Template Compiler', templateCompiler.allTests);
|
||||
describe('Bind Generator', bindGenerator.allTests);
|
||||
describe('Directive Linker', directiveLinker.allTests);
|
||||
describe('Directive Processor', directiveProcessor.allTests);
|
||||
describe('Reflection Remover', reflectionRemover.allTests);
|
||||
describe('Template Compiler', templateCompiler.allTests);
|
||||
// NOTE(kegluneq): These use `code_transformers#testPhases`, which is not
|
||||
// designed to work with `guinness`.
|
||||
group('Transformer Pipeline', integration.allTests);
|
||||
}
|
||||
|
Reference in New Issue
Block a user