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:
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user