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:
Tim Blasi
2015-03-20 15:25:29 -07:00
committed by Misko Hevery
parent 4e82cc0861
commit b35f288794
7 changed files with 31 additions and 28 deletions
@@ -7,7 +7,7 @@ import 'package:angular2/src/transform/common/formatter.dart';
import 'package:code_transformers/tests.dart';
import 'package:dart_style/dart_style.dart';
import 'package:path/path.dart' as path;
import 'package:unittest/unittest.dart';
import 'package:guinness/guinness.dart';
import 'package:unittest/vm_config.dart';
import '../common/read_file.dart';
@@ -17,7 +17,7 @@ var formatter = new DartFormatter();
void allTests() {
var reader = new TestAssetReader();
test('should generate a setter for a `bind` property in an annotation.',
it('should generate a setter for a `bind` property in an annotation.',
() async {
var inputPath = 'bind_generator/basic_bind_files/bar.ng_deps.dart';
var expected = formatter.format(
@@ -25,10 +25,10 @@ void allTests() {
var output = formatter
.format(await createNgSetters(reader, new AssetId('a', inputPath)));
expect(output, equals(expected));
expect(output).toEqual(expected);
});
test('should generate a single setter when multiple annotations bind to the '
it('should generate a single setter when multiple annotations bind to the '
'same property.', () async {
var inputPath =
'bind_generator/duplicate_bind_name_files/soup.ng_deps.dart';
@@ -37,6 +37,6 @@ void allTests() {
var output = formatter
.format(await createNgSetters(reader, new AssetId('a', inputPath)));
expect(output, equals(expected));
expect(output).toEqual(expected);
});
}