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
@@ -1,4 +1,6 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterTestingModule } from '@angular/router/testing';
import { ProductGroupDetailComponent } from './product-group-detail.component';
@@ -8,6 +10,7 @@ describe('ProductGroupDetailComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ReactiveFormsModule, RouterTestingModule],
declarations: [ProductGroupDetailComponent],
}).compileComponents();
}));
@@ -1,17 +1,20 @@
import { inject, TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
import { ProductGroupListResolverService } from './product-group-list-resolver.service';
import { ProductGroupListResolver } from './product-group-list-resolver.service';
describe('ProductGroupListResolverService', () => {
describe('ProductGroupListResolver', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [ProductGroupListResolverService],
imports: [HttpClientModule, RouterTestingModule],
providers: [ProductGroupListResolver],
});
});
it('should be created', inject(
[ProductGroupListResolverService],
(service: ProductGroupListResolverService) => {
[ProductGroupListResolver],
(service: ProductGroupListResolver) => {
expect(service).toBeTruthy();
},
));
@@ -1,4 +1,5 @@
import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { ProductGroupListComponent } from './product-group-list.component';
@@ -8,6 +9,7 @@ describe('ProductGroupListComponent', () => {
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: [RouterTestingModule],
declarations: [ProductGroupListComponent],
}).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 { ProductGroupResolverService } from './product-group-resolver.service';
import { ProductGroupResolver } from './product-group-resolver.service';
describe('ProductGroupResolverService', () => {
describe('ProductGroupResolver', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [ProductGroupDetailResolverService],
imports: [HttpClientModule, RouterTestingModule],
providers: [ProductGroupResolver],
});
});
it('should be created', inject(
[ProductGroupDetailResolverService],
(service: ProductGroupDetailResolverService) => {
expect(service).toBeTruthy();
},
));
it('should be created', inject([ProductGroupResolver], (service: ProductGroupResolver) => {
expect(service).toBeTruthy();
}));
});
@@ -1,10 +1,12 @@
import { inject, TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http';
import { ProductGroupService } from './product-group.service';
describe('ProductGroupService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientModule],
providers: [ProductGroupService],
});
});