Removed old rules from eslint

Tried hand at testing by fixing the spec files with import. However, still many errors and given up now.
This commit is contained in:
2020-10-02 16:24:29 +05:30
parent d77053d92a
commit cefb3ebdcc
118 changed files with 410 additions and 418 deletions

View File

@ -1,15 +1,15 @@
import { inject, TestBed } from '@angular/core/testing';
import { AuthGuardService } from './auth-guard.service';
import { AuthGuard } from './auth-guard.service';
describe('AuthGuardService', () => {
describe('AuthGuard', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [AuthGuardService],
providers: [AuthGuard],
});
});
it('should be created', inject([AuthGuardService], (service: AuthGuardService) => {
it('should be created', inject([AuthGuard], (service: AuthGuard) => {
expect(service).toBeTruthy();
}));
});

View File

@ -1,10 +1,12 @@
import { inject, TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http';
import { AuthService } from './auth.service';
describe('AuthService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientModule],
providers: [AuthService],
});
});

View File

@ -1,4 +1,6 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
import { LoginComponent } from './login.component';
@ -8,6 +10,7 @@ describe('LoginComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [HttpClientModule, RouterTestingModule],
declarations: [LoginComponent],
}).compileComponents();
}));

View File

@ -1,4 +1,6 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
import { LogoutComponent } from './logout.component';
@ -8,6 +10,7 @@ describe('LogoutComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [HttpClientModule, RouterTestingModule],
declarations: [LogoutComponent],
}).compileComponents();
}));