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:
@ -1,10 +1,12 @@
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
|
||||
import { LedgerResolver } from './ledger-resolver.service';
|
||||
|
||||
describe('LedgerResolver', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [HttpClientModule],
|
||||
providers: [LedgerResolver],
|
||||
});
|
||||
});
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { ReactiveFormsModule } from '@angular/forms';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
|
||||
import { LedgerComponent } from './ledger.component';
|
||||
|
||||
@ -8,6 +11,7 @@ describe('LedgerComponent', () => {
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [HttpClientModule, ReactiveFormsModule, RouterTestingModule],
|
||||
declarations: [LedgerComponent],
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
@ -1,10 +1,12 @@
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
|
||||
import { LedgerService } from './ledger.service';
|
||||
|
||||
describe('LedgerService', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [HttpClientModule],
|
||||
providers: [LedgerService],
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user