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,4 +1,7 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
import { ReactiveFormsModule } from '@angular/forms';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
|
||||
import { AccountDetailComponent } from './account-detail.component';
|
||||
|
||||
@@ -8,6 +11,7 @@ describe('AccountDetailComponent', () => {
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule],
|
||||
declarations: [AccountDetailComponent],
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
|
||||
import { AccountListResolverService } from './account-list-resolver.service';
|
||||
import { AccountListResolver } from './account-list-resolver.service';
|
||||
|
||||
describe('AccountListResolverService', () => {
|
||||
describe('AccountListResolver', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [AccountListResolverService],
|
||||
imports: [HttpClientModule],
|
||||
providers: [AccountListResolver],
|
||||
});
|
||||
});
|
||||
|
||||
it('should be created', inject(
|
||||
[AccountListResolverService],
|
||||
(service: AccountListResolverService) => {
|
||||
expect(service).toBeTruthy();
|
||||
},
|
||||
));
|
||||
it('should be created', inject([AccountListResolver], (service: AccountListResolver) => {
|
||||
expect(service).toBeTruthy();
|
||||
}));
|
||||
});
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing';
|
||||
import { ReactiveFormsModule } from '@angular/forms';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
|
||||
import { AccountListComponent } from './account-list.component';
|
||||
|
||||
@@ -8,6 +10,7 @@ describe('AccountListComponent', () => {
|
||||
|
||||
beforeEach(fakeAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ReactiveFormsModule, RouterTestingModule],
|
||||
declarations: [AccountListComponent],
|
||||
}).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 { AccountResolverService } from './account-resolver.service';
|
||||
import { AccountResolver } from './account-resolver.service';
|
||||
|
||||
describe('AccountResolverService', () => {
|
||||
describe('AccountResolver', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [AccountDetailResolverService],
|
||||
imports: [HttpClientModule, RouterTestingModule],
|
||||
providers: [AccountResolver],
|
||||
});
|
||||
});
|
||||
|
||||
it('should be created', inject(
|
||||
[AccountDetailResolverService],
|
||||
(service: AccountDetailResolverService) => {
|
||||
expect(service).toBeTruthy();
|
||||
},
|
||||
));
|
||||
it('should be created', inject([AccountResolver], (service: AccountResolver) => {
|
||||
expect(service).toBeTruthy();
|
||||
}));
|
||||
});
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
|
||||
import { AccountTypeResolverService } from './account-type-resolver.service';
|
||||
import { AccountTypeResolver } from './account-type-resolver.service';
|
||||
|
||||
describe('AccountTypeResolverService', () => {
|
||||
describe('AccountTypeResolver', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [AccountTypeResolverService],
|
||||
imports: [HttpClientModule],
|
||||
providers: [AccountTypeResolver],
|
||||
});
|
||||
});
|
||||
|
||||
it('should be created', inject(
|
||||
[AccountTypeResolverService],
|
||||
(service: AccountTypeResolverService) => {
|
||||
expect(service).toBeTruthy();
|
||||
},
|
||||
));
|
||||
it('should be created', inject([AccountTypeResolver], (service: AccountTypeResolver) => {
|
||||
expect(service).toBeTruthy();
|
||||
}));
|
||||
});
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
|
||||
import { AccountTypeService } from './account-type.service';
|
||||
|
||||
describe('AccountTypeService', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [HttpClientModule],
|
||||
providers: [AccountTypeService],
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user