From 1bc8d4dd0f135b90845c8f9339b13db144830e42 Mon Sep 17 00:00:00 2001
From: Xiao Gui <xgui3783@gmail.com>
Date: Mon, 18 May 2020 16:56:15 +0200
Subject: [PATCH] fixing linting

---
 src/spotlight/sl-service.service.spec.ts      | 11 ++++-------
 src/spotlight/sl-service.service.ts           |  2 +-
 src/spotlight/sl-spotlight.directive.ts       |  6 +++---
 src/spotlight/spot-light-overlay.directive.ts |  3 ---
 .../spotlight-backdrop.component.spec.ts      | 19 +------------------
 .../spotlight-backdrop.component.ts           |  5 ++---
 src/ui/tryme/tryme.component.ts               | 10 +++-------
 7 files changed, 14 insertions(+), 42 deletions(-)

diff --git a/src/spotlight/sl-service.service.spec.ts b/src/spotlight/sl-service.service.spec.ts
index 3cb77c418..f592097de 100644
--- a/src/spotlight/sl-service.service.spec.ts
+++ b/src/spotlight/sl-service.service.spec.ts
@@ -1,12 +1,9 @@
 import { TestBed } from '@angular/core/testing';
 
 import { SlServiceService } from './sl-service.service';
+import { SpotLightModule } from './spot-light.module';
 
 describe('SlServiceService', () => {
-  beforeEach(() => TestBed.configureTestingModule({}));
-
-  it('should be created', () => {
-    const service: SlServiceService = TestBed.get(SlServiceService);
-    expect(service).toBeTruthy();
-  });
-});
+  // TO BE IMPLEMENTED
+  
+})
diff --git a/src/spotlight/sl-service.service.ts b/src/spotlight/sl-service.service.ts
index 7726b5051..c045ebfdb 100644
--- a/src/spotlight/sl-service.service.ts
+++ b/src/spotlight/sl-service.service.ts
@@ -21,7 +21,7 @@ export class SlServiceService implements OnDestroy{
     this.cf = cfr.resolveComponentFactory(SpotlightBackdropComponent)
   }
 
-  public showBackdrop(tmp?:TemplateRef<any>){
+  public showBackdrop(tmp?: TemplateRef<any>){
     this.hideBackdrop()
 
     this.backdropRef = this.cf.create(this.injector)
diff --git a/src/spotlight/sl-spotlight.directive.ts b/src/spotlight/sl-spotlight.directive.ts
index 258d3ddc1..d0d52a596 100644
--- a/src/spotlight/sl-spotlight.directive.ts
+++ b/src/spotlight/sl-spotlight.directive.ts
@@ -1,4 +1,4 @@
-import { Directive, Input, TemplateRef, OnDestroy } from '@angular/core';
+import { Directive, TemplateRef } from '@angular/core';
 import { SlServiceService } from './sl-service.service';
 
 @Directive({
@@ -8,12 +8,12 @@ import { SlServiceService } from './sl-service.service';
 export class SlSpotlightDirective {
 
   constructor(
-    private slService:SlServiceService
+    private slService: SlServiceService
   ) {
     
   }
 
-  showBackdrop(tmpl?:TemplateRef<any>){
+  showBackdrop(tmpl?: TemplateRef<any>){
     this.slService.showBackdrop(tmpl)
   }
 }
diff --git a/src/spotlight/spot-light-overlay.directive.ts b/src/spotlight/spot-light-overlay.directive.ts
index 2e98f66d4..e3de43e14 100644
--- a/src/spotlight/spot-light-overlay.directive.ts
+++ b/src/spotlight/spot-light-overlay.directive.ts
@@ -5,7 +5,4 @@ import { Directive } from '@angular/core';
 })
 export class SpotLightOverlayDirective {
 
-  constructor() {
-  }
-
 }
diff --git a/src/spotlight/spotlight-backdrop/spotlight-backdrop.component.spec.ts b/src/spotlight/spotlight-backdrop/spotlight-backdrop.component.spec.ts
index ff8883f9f..f18f78f32 100644
--- a/src/spotlight/spotlight-backdrop/spotlight-backdrop.component.spec.ts
+++ b/src/spotlight/spotlight-backdrop/spotlight-backdrop.component.spec.ts
@@ -3,23 +3,6 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
 import { SpotlightBackdropComponent } from './spotlight-backdrop.component';
 
 describe('SpotlightBackdropComponent', () => {
-  let component: SpotlightBackdropComponent;
-  let fixture: ComponentFixture<SpotlightBackdropComponent>;
 
-  beforeEach(async(() => {
-    TestBed.configureTestingModule({
-      declarations: [ SpotlightBackdropComponent ]
-    })
-    .compileComponents();
-  }));
-
-  beforeEach(() => {
-    fixture = TestBed.createComponent(SpotlightBackdropComponent);
-    component = fixture.componentInstance;
-    fixture.detectChanges();
-  });
-
-  it('should create', () => {
-    expect(component).toBeTruthy();
-  });
+  // TO BE IMPLEMENTED
 });
diff --git a/src/spotlight/spotlight-backdrop/spotlight-backdrop.component.ts b/src/spotlight/spotlight-backdrop/spotlight-backdrop.component.ts
index 8715e1023..fbf9495a4 100644
--- a/src/spotlight/spotlight-backdrop/spotlight-backdrop.component.ts
+++ b/src/spotlight/spotlight-backdrop/spotlight-backdrop.component.ts
@@ -27,15 +27,14 @@ export class SpotlightBackdropComponent {
 
   // TODO use DI for service injection ?
   public slService: SlServiceService
-  constructor() { }
 
   @HostBinding('@onShownOnDismiss')
   animation: string = 'attach'
 
   @HostListener('click', ['$event'])
-  clickHandler(ev:MouseEvent){
+  clickHandler(ev: MouseEvent){
     this.slService && this.slService.onClick.next(ev)
   }
 
-  insert:TemplateRef<any>
+  insert: TemplateRef<any>
 }
diff --git a/src/ui/tryme/tryme.component.ts b/src/ui/tryme/tryme.component.ts
index 337008262..d5369c352 100644
--- a/src/ui/tryme/tryme.component.ts
+++ b/src/ui/tryme/tryme.component.ts
@@ -1,5 +1,5 @@
-import { Component, OnInit } from "@angular/core";
-import { Observable, timer, interval } from "rxjs";
+import { Component } from "@angular/core";
+import { Observable, interval } from "rxjs";
 import { mapTo, startWith, scan } from "rxjs/operators";
 
 @Component({
@@ -10,7 +10,7 @@ import { mapTo, startWith, scan } from "rxjs/operators";
   ]
 })
 
-export class TryMeComponent implements OnInit{
+export class TryMeComponent{
   public interval$: Observable<any>
 
   constructor(){
@@ -27,8 +27,4 @@ export class TryMeComponent implements OnInit{
     'Drag around',
     'Zoom in / Zoom out'
   ]
-
-  ngOnInit(){
-
-  }
 }
\ No newline at end of file
-- 
GitLab