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:
tanshu committed 2020-10-02 16:24:29 +05:30
1 parent d77053d92a
commit cefb3ebdcc
118 files changed
+410 -418

No files matched your search

@@ -1,4 +1,6 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterTestingModule } from '@angular/router/testing';
import { CostCentreDetailComponent } from './cost-centre-detail.component';
@@ -8,6 +10,7 @@ describe('CostCentreDetailComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ReactiveFormsModule, RouterTestingModule],
declarations: [CostCentreDetailComponent],
}).compileComponents();
}));
@@ -1,18 +1,18 @@
import { inject, TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
import { CostCentreListResolverService } from './cost-centre-list-resolver.service';
import { CostCentreListResolver } from './cost-centre-list-resolver.service';
describe('CostCentreListResolverService', () => {
describe('CostCentreListResolver', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [CostCentreListResolverService],
imports: [HttpClientModule, RouterTestingModule],
providers: [CostCentreListResolver],
});
});
it('should be created', inject(
[CostCentreListResolverService],
(service: CostCentreListResolverService) => {
expect(service).toBeTruthy();
},
));
it('should be created', inject([CostCentreListResolver], (service: CostCentreListResolver) => {
expect(service).toBeTruthy();
}));
});
@@ -1,4 +1,5 @@
import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { CostCentreListComponent } from './cost-centre-list.component';
@@ -8,6 +9,7 @@ describe('CostCentreListComponent', () => {
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: [RouterTestingModule],
declarations: [CostCentreListComponent],
}).compileComponents();
@@ -1,18 +1,18 @@
import { inject, TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
import { CostCentreResolverService } from './cost-centre-resolver.service';
import { CostCentreResolver } from './cost-centre-resolver.service';
describe('CostCentreResolverService', () => {
describe('CostCentreResolver', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [CostCentreDetailResolverService],
imports: [HttpClientModule, RouterTestingModule],
providers: [CostCentreResolver],
});
});
it('should be created', inject(
[CostCentreDetailResolverService],
(service: CostCentreDetailResolverService) => {
expect(service).toBeTruthy();
},
));
it('should be created', inject([CostCentreResolver], (service: CostCentreResolver) => {
expect(service).toBeTruthy();
}));
});
@@ -1,10 +1,12 @@
import { inject, TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http';
import { CostCentreService } from './cost-centre.service';
describe('CostCentreService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientModule],
providers: [CostCentreService],
});
});