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,10 +1,12 @@
import { inject, TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http';
import { ProfitLossResolver } from './profit-loss-resolver.service';
describe('ProfitLossResolver', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientModule],
providers: [ProfitLossResolver],
});
});

View File

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

View File

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