SQUASH ME! Unit test updates.
Kept separate since these are mostly mechanical changes.
This commit is contained in:
parent
9d0b61bad5
commit
a8f45a6b43
|
@ -129,10 +129,9 @@ void allTests() {
|
||||||
|
|
||||||
var linked = (await _testLink(reader, fooAssetId)).ngDeps;
|
var linked = (await _testLink(reader, fooAssetId)).ngDeps;
|
||||||
expect(linked).toBeNotNull();
|
expect(linked).toBeNotNull();
|
||||||
var linkedImport =
|
var linkedImport = linked.depImports
|
||||||
linked.imports.firstWhere((i) => i.uri.endsWith('bar.ng_deps.dart'));
|
.firstWhere((i) => i.uri.endsWith('bar.ng_deps.dart'));
|
||||||
expect(linkedImport).toBeNotNull();
|
expect(linkedImport).toBeNotNull();
|
||||||
expect(linkedImport.isNgDeps).toBeTrue();
|
|
||||||
expect(linkedImport.prefix.startsWith('i')).toBeTrue();
|
expect(linkedImport.prefix.startsWith('i')).toBeTrue();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -145,10 +144,9 @@ void allTests() {
|
||||||
|
|
||||||
var linked = (await _testLink(reader, fooAssetId)).ngDeps;
|
var linked = (await _testLink(reader, fooAssetId)).ngDeps;
|
||||||
expect(linked).toBeNotNull();
|
expect(linked).toBeNotNull();
|
||||||
var linkedImport =
|
var linkedImport = linked.depImports
|
||||||
linked.imports.firstWhere((i) => i.uri.endsWith('bar.ng_deps.dart'));
|
.firstWhere((i) => i.uri.endsWith('bar.ng_deps.dart'));
|
||||||
expect(linkedImport).toBeNotNull();
|
expect(linkedImport).toBeNotNull();
|
||||||
expect(linkedImport.isNgDeps).toBeTrue();
|
|
||||||
expect(linkedImport.prefix.startsWith('i')).toBeTrue();
|
expect(linkedImport.prefix.startsWith('i')).toBeTrue();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -164,7 +162,7 @@ void allTests() {
|
||||||
|
|
||||||
var linked = (await _testLink(reader, fooAssetId)).ngDeps;
|
var linked = (await _testLink(reader, fooAssetId)).ngDeps;
|
||||||
expect(linked).toBeNotNull();
|
expect(linked).toBeNotNull();
|
||||||
var linkedImport = linked.imports.firstWhere(
|
var linkedImport = linked.depImports.firstWhere(
|
||||||
(i) => i.uri.endsWith('bar.ng_deps.dart'),
|
(i) => i.uri.endsWith('bar.ng_deps.dart'),
|
||||||
orElse: () => null);
|
orElse: () => null);
|
||||||
expect(linkedImport).toBeNull();
|
expect(linkedImport).toBeNull();
|
||||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/src/core/metadata.dart';
|
import 'package:angular2/src/core/metadata.dart';
|
||||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
|
||||||
import 'bar.template.dart' as _templates;
|
import 'bar.template.dart' as _templates;
|
||||||
|
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||||
export 'bar.dart';
|
export 'bar.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
|
|
|
@ -3,10 +3,10 @@ library bar.ng_deps.dart;
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/src/core/metadata.dart';
|
import 'package:angular2/src/core/metadata.dart';
|
||||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
|
||||||
import 'baz.dart';
|
import 'baz.dart';
|
||||||
import 'baz.ng_deps.dart' as i1;
|
|
||||||
import 'bar.template.dart' as _templates;
|
import 'bar.template.dart' as _templates;
|
||||||
|
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||||
|
import 'baz.ng_deps.dart' as i1;
|
||||||
export 'bar.dart';
|
export 'bar.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
|
|
|
@ -3,10 +3,10 @@ library bar.ng_deps.dart;
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/src/core/metadata.dart';
|
import 'package:angular2/src/core/metadata.dart';
|
||||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
|
||||||
import 'foo.dart' as prefix;
|
import 'foo.dart' as prefix;
|
||||||
import 'foo.ng_deps.dart' as i1;
|
|
||||||
import 'bar.template.dart' as _templates;
|
import 'bar.template.dart' as _templates;
|
||||||
|
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||||
|
import 'foo.ng_deps.dart' as i1;
|
||||||
export 'bar.dart';
|
export 'bar.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
|
|
|
@ -3,10 +3,10 @@ library bar.ng_deps.dart;
|
||||||
import 'foo.dart';
|
import 'foo.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/src/core/metadata.dart';
|
import 'package:angular2/src/core/metadata.dart';
|
||||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'bar.ng_deps.dart' as i1;
|
|
||||||
import 'foo.template.dart' as _templates;
|
import 'foo.template.dart' as _templates;
|
||||||
|
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||||
|
import 'bar.ng_deps.dart' as i1;
|
||||||
export 'foo.dart';
|
export 'foo.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/src/core/metadata.dart';
|
import 'package:angular2/src/core/metadata.dart';
|
||||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
|
||||||
import 'bar.template.dart' as _templates;
|
import 'bar.template.dart' as _templates;
|
||||||
|
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||||
export 'bar.dart';
|
export 'bar.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
|
|
|
@ -3,9 +3,9 @@ library bar.ng_deps.dart;
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/src/core/metadata.dart';
|
import 'package:angular2/src/core/metadata.dart';
|
||||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
|
||||||
import 'foo.dart';
|
import 'foo.dart';
|
||||||
import 'bar.template.dart' as _templates;
|
import 'bar.template.dart' as _templates;
|
||||||
|
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||||
export 'bar.dart';
|
export 'bar.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/src/core/metadata.dart';
|
import 'package:angular2/src/core/metadata.dart';
|
||||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
|
||||||
import 'bar.template.dart' as _templates;
|
import 'bar.template.dart' as _templates;
|
||||||
|
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||||
export 'bar.dart';
|
export 'bar.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/src/core/metadata.dart';
|
import 'package:angular2/src/core/metadata.dart';
|
||||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
|
||||||
import 'bar.template.dart' as _templates;
|
import 'bar.template.dart' as _templates;
|
||||||
|
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||||
export 'bar.dart';
|
export 'bar.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/src/core/metadata.dart';
|
import 'package:angular2/src/core/metadata.dart';
|
||||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
|
||||||
import 'bar.template.dart' as _templates;
|
import 'bar.template.dart' as _templates;
|
||||||
|
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||||
export 'bar.dart';
|
export 'bar.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/src/core/metadata.dart';
|
import 'package:angular2/src/core/metadata.dart';
|
||||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
|
||||||
import 'bar.template.dart' as _templates;
|
import 'bar.template.dart' as _templates;
|
||||||
|
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||||
export 'bar.dart';
|
export 'bar.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
|
|
|
@ -5,12 +5,12 @@ import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/bootstrap_static.dart';
|
import 'package:angular2/bootstrap_static.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart';
|
import 'package:angular2/src/core/reflection/reflection.dart';
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'bar.ng_deps.dart' as i2;
|
import 'bar.ng_deps.dart' as i0;
|
||||||
export 'index.dart';
|
export 'index.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
void initReflector() {
|
void initReflector() {
|
||||||
if (_visited) return;
|
if (_visited) return;
|
||||||
_visited = true;
|
_visited = true;
|
||||||
i2.initReflector();
|
i0.initReflector();
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/src/core/metadata.dart';
|
import 'package:angular2/src/core/metadata.dart';
|
||||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
|
||||||
import 'bar.template.dart' as _templates;
|
import 'bar.template.dart' as _templates;
|
||||||
|
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||||
export 'bar.dart';
|
export 'bar.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/src/core/metadata.dart';
|
import 'package:angular2/src/core/metadata.dart';
|
||||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
|
||||||
import 'bar.template.dart' as _templates;
|
import 'bar.template.dart' as _templates;
|
||||||
|
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||||
export 'bar.dart';
|
export 'bar.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
|
|
|
@ -3,9 +3,9 @@ library bar.ng_deps.dart;
|
||||||
import 'bar.dart';
|
import 'bar.dart';
|
||||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||||
import 'package:angular2/src/core/metadata.dart';
|
import 'package:angular2/src/core/metadata.dart';
|
||||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
|
||||||
import 'foo.dart' as prefix;
|
import 'foo.dart' as prefix;
|
||||||
import 'bar.template.dart' as _templates;
|
import 'bar.template.dart' as _templates;
|
||||||
|
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||||
export 'bar.dart';
|
export 'bar.dart';
|
||||||
|
|
||||||
var _visited = false;
|
var _visited = false;
|
||||||
|
|
Loading…
Reference in New Issue