tslint arrow-parens rule (#4003)

This commit is contained in:
Eugenio Romano
2018-11-23 01:06:56 +00:00
committed by GitHub
parent 51bb6a420f
commit 34a30c0f14
194 changed files with 725 additions and 723 deletions

View File

@@ -62,7 +62,7 @@ describe('Breadcrumb', () => {
it('should emit navigation event', (done) => {
let node = <PathElementEntity> { id: '-id-', name: 'name' };
component.navigate.subscribe(val => {
component.navigate.subscribe((val) => {
expect(val).toBe(node);
done();
});

View File

@@ -153,7 +153,7 @@ export class BreadcrumbComponent implements OnInit, OnChanges {
let result: number = -1;
if (route && route.length > 0 && nodeId) {
result = route.findIndex(el => el.id === nodeId);
result = route.findIndex((el) => el.id === nodeId);
}
return result;

View File

@@ -140,7 +140,7 @@ describe('DropdownBreadcrumb', () => {
openSelect();
fixture.whenStable().then(() => {
component.navigate.subscribe(val => {
component.navigate.subscribe((val) => {
expect(val).toEqual({ id: '1', name: 'Stark Industries' });
done();
});