Skip to content

Commit 4bb3b85

Browse files
[DURACOM-317] fix lint
1 parent 65b1dfa commit 4bb3b85

6 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/app/audit-page/audit-table/audit-table.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ import { VarDirective } from '../../shared/utils/var.directive';
2727
selector: 'ds-audit-table',
2828
templateUrl: './audit-table.component.html',
2929
imports: [
30-
PaginationComponent,
3130
AsyncPipe,
32-
TranslateModule,
33-
VarDirective,
34-
RouterLink,
3531
DatePipe,
36-
StringReplacePipe,
37-
NgClass,
3832
NgbCollapseModule,
33+
NgClass,
3934
NgTemplateOutlet,
35+
PaginationComponent,
36+
RouterLink,
37+
StringReplacePipe,
38+
TranslateModule,
39+
VarDirective,
4040
],
4141
standalone: true,
4242
})

src/app/audit-page/object-audit-overview/object-audit-overview.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import { RouterTestingModule } from '@angular/router/testing';
1515
import { provideMockStore } from '@ngrx/store/testing';
1616
import { TranslateModule } from '@ngx-translate/core';
17-
import { of as observableOf } from 'rxjs';
17+
import { of } from 'rxjs';
1818
import { CollectionDataService } from 'src/app/core/data/collection-data.service';
1919
import { Item } from 'src/app/core/shared/item.model';
2020
import { APP_DATA_SERVICES_MAP } from 'src/config/app-config.interface';
@@ -47,15 +47,15 @@ describe('ObjectAuditOverviewComponent', () => {
4747
audits = [ AuditMock ];
4848
auditService = jasmine.createSpyObj('auditService', {
4949
findByObject: createSuccessfulRemoteDataObject$(createPaginatedList(audits)),
50-
getEpersonName: observableOf('Eperson Name'),
50+
getEpersonName: of('Eperson Name'),
5151
auditHasDetails: false,
5252
});
5353
itemService = jasmine.createSpyObj('ItemService', { findById: createSuccessfulRemoteDataObject$(new Item()) });
5454
collectionService = jasmine.createSpyObj('CollectionDataService',
5555
{ findOwningCollectionFor: createSuccessfulRemoteDataObject$(createPaginatedList([{ id : 'collectionId' }])) },
5656
);
5757
activatedRoute = new MockActivatedRoute({ objectId: '1234' });
58-
activatedRoute.paramMap = observableOf({
58+
activatedRoute.paramMap = of({
5959
get: () => '1234',
6060
});
6161
}

src/app/audit-page/object-audit-overview/object-audit-overview.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ import { AuditTableComponent } from '../audit-table/audit-table.component';
5050
templateUrl: './object-audit-overview.component.html',
5151
imports: [
5252
AsyncPipe,
53-
TranslateModule,
5453
AuditTableComponent,
5554
RouterLink,
55+
TranslateModule,
5656
],
5757
standalone: true,
5858
})

src/app/audit-page/overview/audit-overview.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import { AuditTableComponent } from '../audit-table/audit-table.component';
3434
templateUrl: './audit-overview.component.html',
3535
imports: [
3636
AsyncPipe,
37-
TranslateModule,
3837
AuditTableComponent,
38+
TranslateModule,
3939
],
4040
standalone: true,
4141
})

src/app/shared/menu/providers/audit-item.menu.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
import { TestBed } from '@angular/core/testing';
3-
import { of as observableOf } from 'rxjs';
3+
import { of } from 'rxjs';
44

55
import { ConfigurationDataService } from '../../../core/data/configuration-data.service';
66
import { AuthorizationDataService } from '../../../core/data/feature-authorization/authorization-data.service';
@@ -49,7 +49,7 @@ describe('AuditLogsMenuProvider', () => {
4949

5050
beforeEach(() => {
5151
spyOn(authorizationServiceStub, 'isAuthorized').and.returnValue(
52-
observableOf(true),
52+
of(true),
5353
);
5454
TestBed.configureTestingModule({
5555
providers: [

src/app/shared/menu/providers/audit-overview.menu.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import { TestBed } from '@angular/core/testing';
10-
import { of as observableOf } from 'rxjs';
10+
import { of } from 'rxjs';
1111

1212
import { APP_CONFIG } from '../../../../config/app-config.interface';
1313
import { environment } from '../../../../environments/environment';
@@ -35,7 +35,7 @@ describe('AuditOverviewMenuProvider', () => {
3535

3636
beforeEach(() => {
3737
spyOn(authorizationServiceStub, 'isAuthorized').and.returnValue(
38-
observableOf(true),
38+
of(true),
3939
);
4040

4141
TestBed.configureTestingModule({

0 commit comments

Comments
 (0)