Skip to content

Commit

Permalink
Fix karma tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedHamouGisaia committed Jan 9, 2025
1 parent f4cdaf2 commit 2c19183
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ import { ResultlistService } from './services/resultlist.service';
import { VisualizeService } from './services/visualize.service';

describe('ArlasWuiComponent', () => {
let component: ArlasWuiComponent;
let fixture: ComponentFixture<ArlasWuiComponent>;
let component: ArlasWuiComponent<any, any, any>;
let fixture: ComponentFixture<ArlasWuiComponent<any, any, any>>;

beforeEach(async () => {
const mockArlasStartupService = jasmine.createSpyObj('ArlasStartupService', [], {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { Overlay } from '@angular/cdk/overlay';
import { ResultlistService } from '@services/resultlist.service';

describe('ArlasAnalyticsComponent', () => {
let component: ArlasAnalyticsComponent;
let fixture: ComponentFixture<ArlasAnalyticsComponent>;
let component: ArlasAnalyticsComponent<any, any, any>;
let fixture: ComponentFixture<ArlasAnalyticsComponent<any, any, any>>;

beforeEach(async () => {
const mockArlasStartupService = jasmine.createSpyObj('ArlasStartupService', [], {
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/arlas-list/arlas-list.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { ArlasToolKitModule, ArlasToolkitSharedModule } from 'arlas-wui-toolkit'
import { ArlasListComponent } from './arlas-list.component';

describe('ArlasListComponent', () => {
let component: ArlasListComponent;
let fixture: ComponentFixture<ArlasListComponent>;
let component: ArlasListComponent<any, any, any>;
let fixture: ComponentFixture<ArlasListComponent<any, any, any>>;

beforeEach(async () => {
await TestBed.configureTestingModule({
Expand Down
12 changes: 6 additions & 6 deletions src/app/components/arlas-map/arlas-map.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core';
import { VisualizeService } from 'app/services/visualize.service';
import { ArlasToolKitModule, ArlasToolkitSharedModule } from 'arlas-wui-toolkit';
import { ArlasMapComponent } from './arlas-map.component';
import { ArlasWuiMapComponent } from './arlas-map.component';

describe('ArlasMapComponent', () => {
let component: ArlasMapComponent;
let fixture: ComponentFixture<ArlasMapComponent>;
describe('ArlasWuiMapComponent', () => {
let component: ArlasWuiMapComponent<any, any, any>;
let fixture: ComponentFixture<ArlasWuiMapComponent<any, any, any>>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ ArlasMapComponent ],
declarations: [ ArlasWuiMapComponent ],
imports: [
ArlasToolKitModule,
TranslateModule.forRoot({
Expand All @@ -24,7 +24,7 @@ describe('ArlasMapComponent', () => {
})
.compileComponents();

fixture = TestBed.createComponent(ArlasMapComponent);
fixture = TestBed.createComponent(ArlasWuiMapComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ import {
import { ArlasWuiRootComponent } from './arlas-wui-root.component';

describe('ArlasWuiRootComponent', () => {
let component: ArlasWuiRootComponent;
let fixture: ComponentFixture<ArlasWuiRootComponent>;
let component: ArlasWuiRootComponent<any, any, any>;
let fixture: ComponentFixture<ArlasWuiRootComponent<any, any, any>>;

beforeEach(async () => {
const mockSettingsService = jasmine.createSpyObj('ArlasSettingsService',
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/map.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { TestBed } from '@angular/core/testing';
import { ArlasWuiMapService } from './map.service';

describe('MapService', () => {
let service: ArlasWuiMapService;
let service: ArlasWuiMapService<any, any, any>;

beforeEach(() => {
TestBed.configureTestingModule({});
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/resultlist.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { VisualizeService } from './visualize.service';


describe('ResultlistService', () => {
let service: ResultlistService;
let service: ResultlistService<any, any, any>;

beforeEach(() => {
const mockArlasCollectionService = jasmine.createSpyObj('ArlasCollectionService', [], {
Expand Down
1 change: 0 additions & 1 deletion src/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"outDir": "../out-tsc/app",
"baseUrl": "",
"types": [
"mapbox-gl",
"geojson",
"node"
]
Expand Down
1 change: 0 additions & 1 deletion src/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"outDir": "../out-tsc/spec",
"baseUrl": "",
"types": [
"mapbox-gl",
"geojson",
"jasmine",
"node"
Expand Down

0 comments on commit 2c19183

Please sign in to comment.