fix(dart/transform): Gracefully handle log calls before init

- Lazily create and use a logger that prints instead of `throw`ing.
- Use this logger in unit tests.
This commit is contained in:
Tim Blasi
2015-04-09 17:42:14 -07:00
parent cac74c73e1
commit bba849909c
4 changed files with 31 additions and 28 deletions
@@ -10,14 +10,12 @@ import 'package:path/path.dart' as path;
import 'package:guinness/guinness.dart';
import 'package:unittest/vm_config.dart';
import '../common/logger.dart';
import '../common/read_file.dart';
var formatter = new DartFormatter();
void allTests() {
var reader = new TestAssetReader();
setLogger(new NullLogger());
it('should ensure that dependencies are property chained.', () async {
for (var inputPath in [