refactor(test): Remove unnecessary noSuchMethod

Remove trivial implementations in many spy objects which just calls the
parent's `noSuchMethod`.

Closes #6410

Closes #6491
This commit is contained in:
Tim Blasi
2016-01-12 11:36:58 -08:00
committed by Timothy Blasi
parent bd015f14e8
commit e19b31db29
9 changed files with 27 additions and 88 deletions
@@ -8,7 +8,6 @@ import 'dart:js';
@proxy
class SpyApplicationRef extends SpyObject implements ApplicationRef {
tick() {}
noSuchMethod(m) => super.noSuchMethod(m);
}
@proxy
@@ -16,11 +15,9 @@ class SpyComponentRef extends SpyObject implements ComponentRef_ {
Injector injector;
SpyComponentRef() {
this.injector =
Injector.resolveAndCreate([bind(ApplicationRef).toClass(SpyApplicationRef)]);
this.injector = Injector
.resolveAndCreate([bind(ApplicationRef).toClass(SpyApplicationRef)]);
}
noSuchMethod(m) => super.noSuchMethod(m);
}
void callNgProfilerTimeChangeDetection([config]) {