mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
ESlint: fix imports
This commit is contained in:
@@ -1,19 +1,27 @@
|
||||
// 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 { HttpXsrfTokenExtractor } from '@angular/common/http';
|
||||
import {
|
||||
ChangeDetectorRef,
|
||||
Component,
|
||||
CUSTOM_ELEMENTS_SCHEMA,
|
||||
} from '@angular/core';
|
||||
import {
|
||||
ComponentFixture,
|
||||
inject,
|
||||
TestBed,
|
||||
waitForAsync,
|
||||
} from '@angular/core/testing';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { ScrollToService } from '@nicky-lenaers/ngx-scroll-to';
|
||||
import { FileUploadModule } from 'ng2-file-upload';
|
||||
|
||||
import { DragService } from '../../../core/drag.service';
|
||||
import { UploaderOptions } from './uploader-options.model';
|
||||
import { UploaderComponent } from './uploader.component';
|
||||
import { FileUploadModule } from 'ng2-file-upload';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { createTestComponent } from '../../testing/utils.test';
|
||||
import { HttpXsrfTokenExtractor } from '@angular/common/http';
|
||||
import { CookieService } from '../../../core/services/cookie.service';
|
||||
import { CookieServiceMock } from '../../mocks/cookie.service.mock';
|
||||
import { HttpXsrfTokenExtractorMock } from '../../mocks/http-xsrf-token-extractor.mock';
|
||||
import { createTestComponent } from '../../testing/utils.test';
|
||||
import { UploaderComponent } from './uploader.component';
|
||||
import { UploaderOptions } from './uploader-options.model';
|
||||
|
||||
describe('Chips component', () => {
|
||||
|
||||
|
@@ -1,17 +1,33 @@
|
||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, HostListener, Input, Output, ViewEncapsulation } from '@angular/core';
|
||||
|
||||
import { of as observableOf } from 'rxjs';
|
||||
import { FileUploader } from 'ng2-file-upload';
|
||||
import uniqueId from 'lodash/uniqueId';
|
||||
import { ScrollToService } from '@nicky-lenaers/ngx-scroll-to';
|
||||
|
||||
import { UploaderOptions } from './uploader-options.model';
|
||||
import { hasValue, isNotEmpty, isUndefined } from '../../empty.util';
|
||||
import { UploaderProperties } from './uploader-properties.model';
|
||||
import { HttpXsrfTokenExtractor } from '@angular/common/http';
|
||||
import { XSRF_COOKIE, XSRF_REQUEST_HEADER, XSRF_RESPONSE_HEADER } from '../../../core/xsrf/xsrf.constants';
|
||||
import { CookieService } from '../../../core/services/cookie.service';
|
||||
import {
|
||||
ChangeDetectionStrategy,
|
||||
ChangeDetectorRef,
|
||||
Component,
|
||||
EventEmitter,
|
||||
HostListener,
|
||||
Input,
|
||||
Output,
|
||||
ViewEncapsulation,
|
||||
} from '@angular/core';
|
||||
import { ScrollToService } from '@nicky-lenaers/ngx-scroll-to';
|
||||
import uniqueId from 'lodash/uniqueId';
|
||||
import { FileUploader } from 'ng2-file-upload';
|
||||
import { of as observableOf } from 'rxjs';
|
||||
|
||||
import { DragService } from '../../../core/drag.service';
|
||||
import { CookieService } from '../../../core/services/cookie.service';
|
||||
import {
|
||||
XSRF_COOKIE,
|
||||
XSRF_REQUEST_HEADER,
|
||||
XSRF_RESPONSE_HEADER,
|
||||
} from '../../../core/xsrf/xsrf.constants';
|
||||
import {
|
||||
hasValue,
|
||||
isNotEmpty,
|
||||
isUndefined,
|
||||
} from '../../empty.util';
|
||||
import { UploaderOptions } from './uploader-options.model';
|
||||
import { UploaderProperties } from './uploader-properties.model';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-uploader',
|
||||
|
Reference in New Issue
Block a user