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;
|
||||
expect(linked).toBeNotNull();
|
||||
var linkedImport =
|
||||
linked.imports.firstWhere((i) => i.uri.endsWith('bar.ng_deps.dart'));
|
||||
var linkedImport = linked.depImports
|
||||
.firstWhere((i) => i.uri.endsWith('bar.ng_deps.dart'));
|
||||
expect(linkedImport).toBeNotNull();
|
||||
expect(linkedImport.isNgDeps).toBeTrue();
|
||||
expect(linkedImport.prefix.startsWith('i')).toBeTrue();
|
||||
});
|
||||
|
||||
|
@ -145,10 +144,9 @@ void allTests() {
|
|||
|
||||
var linked = (await _testLink(reader, fooAssetId)).ngDeps;
|
||||
expect(linked).toBeNotNull();
|
||||
var linkedImport =
|
||||
linked.imports.firstWhere((i) => i.uri.endsWith('bar.ng_deps.dart'));
|
||||
var linkedImport = linked.depImports
|
||||
.firstWhere((i) => i.uri.endsWith('bar.ng_deps.dart'));
|
||||
expect(linkedImport).toBeNotNull();
|
||||
expect(linkedImport.isNgDeps).toBeTrue();
|
||||
expect(linkedImport.prefix.startsWith('i')).toBeTrue();
|
||||
});
|
||||
|
||||
|
@ -164,7 +162,7 @@ void allTests() {
|
|||
|
||||
var linked = (await _testLink(reader, fooAssetId)).ngDeps;
|
||||
expect(linked).toBeNotNull();
|
||||
var linkedImport = linked.imports.firstWhere(
|
||||
var linkedImport = linked.depImports.firstWhere(
|
||||
(i) => i.uri.endsWith('bar.ng_deps.dart'),
|
||||
orElse: () => null);
|
||||
expect(linkedImport).toBeNull();
|
||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
|||
import 'bar.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||
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 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
export 'bar.dart';
|
||||
|
||||
var _visited = false;
|
||||
|
|
|
@ -3,10 +3,10 @@ library bar.ng_deps.dart;
|
|||
import 'bar.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||
import 'package:angular2/src/core/metadata.dart';
|
||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
import 'baz.dart';
|
||||
import 'baz.ng_deps.dart' as i1;
|
||||
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';
|
||||
|
||||
var _visited = false;
|
||||
|
|
|
@ -3,10 +3,10 @@ library bar.ng_deps.dart;
|
|||
import 'bar.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||
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.ng_deps.dart' as i1;
|
||||
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';
|
||||
|
||||
var _visited = false;
|
||||
|
|
|
@ -3,10 +3,10 @@ library bar.ng_deps.dart;
|
|||
import 'foo.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||
import 'package:angular2/src/core/metadata.dart';
|
||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
import 'bar.dart';
|
||||
import 'bar.ng_deps.dart' as i1;
|
||||
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';
|
||||
|
||||
var _visited = false;
|
||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
|||
import 'bar.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||
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 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
export 'bar.dart';
|
||||
|
||||
var _visited = false;
|
||||
|
|
|
@ -3,9 +3,9 @@ library bar.ng_deps.dart;
|
|||
import 'bar.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||
import 'package:angular2/src/core/metadata.dart';
|
||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
import 'foo.dart';
|
||||
import 'bar.template.dart' as _templates;
|
||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
export 'bar.dart';
|
||||
|
||||
var _visited = false;
|
||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
|||
import 'bar.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||
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 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
export 'bar.dart';
|
||||
|
||||
var _visited = false;
|
||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
|||
import 'bar.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||
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 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
export 'bar.dart';
|
||||
|
||||
var _visited = false;
|
||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
|||
import 'bar.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||
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 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
export 'bar.dart';
|
||||
|
||||
var _visited = false;
|
||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
|||
import 'bar.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||
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 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
export 'bar.dart';
|
||||
|
||||
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/src/core/reflection/reflection.dart';
|
||||
import 'bar.dart';
|
||||
import 'bar.ng_deps.dart' as i2;
|
||||
import 'bar.ng_deps.dart' as i0;
|
||||
export 'index.dart';
|
||||
|
||||
var _visited = false;
|
||||
void initReflector() {
|
||||
if (_visited) return;
|
||||
_visited = true;
|
||||
i2.initReflector();
|
||||
i0.initReflector();
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
|||
import 'bar.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||
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 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
export 'bar.dart';
|
||||
|
||||
var _visited = false;
|
||||
|
|
|
@ -3,8 +3,8 @@ library bar.ng_deps.dart;
|
|||
import 'bar.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||
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 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
export 'bar.dart';
|
||||
|
||||
var _visited = false;
|
||||
|
|
|
@ -3,9 +3,9 @@ library bar.ng_deps.dart;
|
|||
import 'bar.dart';
|
||||
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef;
|
||||
import 'package:angular2/src/core/metadata.dart';
|
||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
import 'foo.dart' as prefix;
|
||||
import 'bar.template.dart' as _templates;
|
||||
import 'package:angular2/src/core/metadata.ng_deps.dart' as i0;
|
||||
export 'bar.dart';
|
||||
|
||||
var _visited = false;
|
||||
|
|
Loading…
Reference in New Issue