| Index: third_party/pkg/angular/lib/mock/test_injection.dart
|
| diff --git a/third_party/pkg/angular/lib/mock/test_injection.dart b/third_party/pkg/angular/lib/mock/test_injection.dart
|
| index c3201d4ed34d980d07412cd8440fa7cf3a1c208c..2ca2b6c2c947446e96d14ff66b6c4e95734d475f 100644
|
| --- a/third_party/pkg/angular/lib/mock/test_injection.dart
|
| +++ b/third_party/pkg/angular/lib/mock/test_injection.dart
|
| @@ -1,9 +1,4 @@
|
| -library angular.mock.test_injection;
|
| -
|
| -import 'package:angular/application_factory.dart';
|
| -import 'package:angular/mock/module.dart';
|
| -import 'package:di/di.dart';
|
| -import 'package:di/dynamic_injector.dart';
|
| +part of angular.mock;
|
|
|
| _SpecInjector _currentSpecInjector = null;
|
|
|
| @@ -73,14 +68,11 @@ class _SpecInjector {
|
| *
|
| * NOTE: Calling inject creates an injector, which prevents any more calls to [module].
|
| *
|
| - * NOTE: [inject] will never return the result of [fn]. If you need to return a [Future]
|
| - * for unittest to consume, take a look at [async], [clockTick], and [microLeap] instead.
|
| - *
|
| * Typical usage:
|
| *
|
| * test('wrap whole test', inject((TestBed tb) {
|
| * tb.compile(...);
|
| - * }));
|
| + * });
|
| *
|
| * test('wrap part of a test', () {
|
| * module((Module module) {
|
| @@ -135,9 +127,7 @@ module(fnOrModule) {
|
| void setUpInjector() {
|
| _currentSpecInjector = new _SpecInjector();
|
| _currentSpecInjector.module((Module m) {
|
| - m
|
| - ..install(applicationFactory().ngModule)
|
| - ..install(new AngularMockModule());
|
| + m..install(new AngularModule())..install(new AngularMockModule());
|
| });
|
| }
|
|
|
|
|