mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
tslint arrow-parens rule (#4003)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
@@ -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;
|
||||
|
@@ -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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user