refactor: simplify arrow functions (#12057)
This commit is contained in:

committed by
Chuck Jazdzewski

parent
6f7ed32154
commit
0528dcb9dc
@ -971,8 +971,7 @@ describe('Integration', () => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [{
|
||||
provide: 'CanActivate',
|
||||
useValue:
|
||||
(a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => { return of (false); }
|
||||
useValue: (a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => of (false),
|
||||
}]
|
||||
});
|
||||
});
|
||||
@ -1046,7 +1045,7 @@ describe('Integration', () => {
|
||||
useValue: (c: any, a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => {
|
||||
return a.params['name'] === 'victor';
|
||||
}
|
||||
}
|
||||
},
|
||||
]
|
||||
});
|
||||
});
|
||||
@ -1191,7 +1190,7 @@ describe('Integration', () => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [{
|
||||
provide: 'alwaysFalse',
|
||||
useValue: (a: any, b: any) => { return a.params.id === '22'; }
|
||||
useValue: (a: any, b: any) => a.params.id === '22',
|
||||
}]
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user