mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
fixed lint errors
This commit is contained in:
@@ -9,21 +9,21 @@ import {
|
||||
import {
|
||||
CUSTOM_ELEMENTS_SCHEMA,
|
||||
DebugElement
|
||||
} from "@angular/core";
|
||||
} from '@angular/core';
|
||||
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
import { By } from '@angular/platform-browser';
|
||||
|
||||
import { TranslateModule, TranslateLoader } from "@ngx-translate/core";
|
||||
import { Store, StoreModule } from "@ngrx/store";
|
||||
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
||||
import { Store, StoreModule } from '@ngrx/store';
|
||||
|
||||
// Load the implementations that should be tested
|
||||
import { AppComponent } from './app.component';
|
||||
|
||||
import { HostWindowState } from "./shared/host-window.reducer";
|
||||
import { HostWindowResizeAction } from "./shared/host-window.actions";
|
||||
import { MockTranslateLoader } from "./shared/testing/mock-translate-loader";
|
||||
import { HostWindowState } from './shared/host-window.reducer';
|
||||
import { HostWindowResizeAction } from './shared/host-window.actions';
|
||||
import { MockTranslateLoader } from './shared/testing/mock-translate-loader';
|
||||
|
||||
import { BrowserCookiesModule } from '../modules/cookies/browser-cookies.module';
|
||||
import { BrowserDataLoaderModule } from '../modules/data-loader/browser-data-loader.module';
|
||||
@@ -31,7 +31,7 @@ import { BrowserTransferStateModule } from '../modules/transfer-state/browser-tr
|
||||
import { BrowserTransferStoreModule } from '../modules/transfer-store/browser-transfer-store.module';
|
||||
|
||||
import { GLOBAL_CONFIG, ENV_CONFIG } from '../config';
|
||||
import { NativeWindowRef, NativeWindowService } from "./shared/window.service";
|
||||
import { NativeWindowRef, NativeWindowService } from './shared/window.service';
|
||||
|
||||
let comp: AppComponent;
|
||||
let fixture: ComponentFixture<AppComponent>;
|
||||
@@ -73,7 +73,7 @@ describe('App component', () => {
|
||||
|
||||
comp = fixture.componentInstance; // component test instance
|
||||
|
||||
// query for the <div class="outer-wrapper"> by CSS element selector
|
||||
// query for the <div class='outer-wrapper'> by CSS element selector
|
||||
de = fixture.debugElement.query(By.css('div.outer-wrapper'));
|
||||
el = de.nativeElement;
|
||||
});
|
||||
@@ -83,7 +83,7 @@ describe('App component', () => {
|
||||
expect(app).toBeTruthy();
|
||||
}));
|
||||
|
||||
describe("when the window is resized", () => {
|
||||
describe('when the window is resized', () => {
|
||||
let width: number;
|
||||
let height: number;
|
||||
let store: Store<HostWindowState>;
|
||||
@@ -97,7 +97,7 @@ describe('App component', () => {
|
||||
height = window.innerHeight;
|
||||
});
|
||||
|
||||
it("should dispatch a HostWindowResizeAction with the width and height of the window as its payload", () => {
|
||||
it('should dispatch a HostWindowResizeAction with the width and height of the window as its payload', () => {
|
||||
expect(store.dispatch).toHaveBeenCalledWith(new HostWindowResizeAction(width, height));
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user