mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
ESLint: fix dangling commas
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Load the implementations that should be tested
|
||||
import { ChangeDetectorRef, Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { ComponentFixture, inject, TestBed, waitForAsync, } from '@angular/core/testing';
|
||||
import { ComponentFixture, inject, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
|
||||
import { ScrollToService } from '@nicky-lenaers/ngx-scroll-to';
|
||||
|
||||
@@ -27,7 +27,7 @@ describe('Chips component', () => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
FileUploadModule,
|
||||
TranslateModule.forRoot()
|
||||
TranslateModule.forRoot(),
|
||||
],
|
||||
declarations: [
|
||||
UploaderComponent,
|
||||
@@ -41,7 +41,7 @@ describe('Chips component', () => {
|
||||
{ provide: HttpXsrfTokenExtractor, useValue: new HttpXsrfTokenExtractorMock('mock-token') },
|
||||
{ provide: CookieService, useValue: new CookieServiceMock() },
|
||||
],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||
});
|
||||
|
||||
}));
|
||||
@@ -67,14 +67,14 @@ describe('Chips component', () => {
|
||||
// declare a test component
|
||||
@Component({
|
||||
selector: 'ds-test-cmp',
|
||||
template: ``
|
||||
template: ``,
|
||||
})
|
||||
class TestComponent {
|
||||
public uploadFilesOptions: UploaderOptions = Object.assign(new UploaderOptions(), {
|
||||
url: 'http://test',
|
||||
authToken: null,
|
||||
disableMultipart: false,
|
||||
itemAlias: null
|
||||
itemAlias: null,
|
||||
});
|
||||
|
||||
/* eslint-disable no-empty,@typescript-eslint/no-empty-function */
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, HostListener, Input, Output, ViewEncapsulation, } from '@angular/core';
|
||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, HostListener, Input, Output, ViewEncapsulation } from '@angular/core';
|
||||
|
||||
import { of as observableOf } from 'rxjs';
|
||||
import { FileUploader } from 'ng2-file-upload';
|
||||
@@ -18,7 +18,7 @@ import { DragService } from '../../../core/drag.service';
|
||||
templateUrl: 'uploader.component.html',
|
||||
styleUrls: ['uploader.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.Default,
|
||||
encapsulation: ViewEncapsulation.Emulated
|
||||
encapsulation: ViewEncapsulation.Emulated,
|
||||
})
|
||||
|
||||
export class UploaderComponent {
|
||||
@@ -90,7 +90,7 @@ export class UploaderComponent {
|
||||
private scrollToService: ScrollToService,
|
||||
private dragService: DragService,
|
||||
private tokenExtractor: HttpXsrfTokenExtractor,
|
||||
private cookieService: CookieService
|
||||
private cookieService: CookieService,
|
||||
) {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user