chore: fix lint error

pull/6116/head
mehmet-erim 5 years ago
parent d14e6ae3c1
commit 108bc984d7

@ -6,6 +6,8 @@ import { BehaviorSubject, of, Subject } from 'rxjs';
import { LocalizationService } from '../services/localization.service';
import { SessionStateService } from '../services';
const shouldReuseRoute = () => true;
describe('LocalizationService', () => {
let spectator: SpectatorService<LocalizationService>;
let store: SpyObject<Store>;
@ -30,7 +32,7 @@ describe('LocalizationService', () => {
store = spectator.inject(Store);
store.dispatch.mockReturnValue(new BehaviorSubject('tr'));
router = spectator.inject(Router);
router.routeReuseStrategy = {} as any;
router.routeReuseStrategy = { shouldReuseRoute } as any;
service = spectator.service;
const sessionState = spectator.inject(SessionStateService);
@ -66,11 +68,6 @@ describe('LocalizationService', () => {
describe('#registerLocale', () => {
it('should return registerLocale and then call setRouteReuse', () => {
const router = spectator.inject(Router);
const shouldReuseRoute = () => true;
router.routeReuseStrategy = { shouldReuseRoute } as any;
router.navigateByUrl.andCallFake(url => {
return new Promise(resolve => resolve({ catch: () => null }));
});

@ -50,7 +50,7 @@ describe('LazyStyleHandler', () => {
describe('initLazyStyleHandler', () => {
it('should return a LazyStyleHandler factory', () => {
const generator = (function* () {
const generator = (function*() {
yield undefined; // LAZY_STYLES
yield { loaded: new Map() }; // LazyLoadService
yield { currentLang: 'en', languageChange$: EMPTY }; // LocalizationService

Loading…
Cancel
Save