From 91978c46723fb5ce954c943aa0bc563cb22a3e1d Mon Sep 17 00:00:00 2001 From: Olivia Guyot Date: Thu, 11 May 2023 20:56:57 +0200 Subject: [PATCH] chore: remove empty test file for web component --- .../gn-map-viewer.component.spec.ts | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 apps/webcomponents/src/app/components/gn-map-viewer/gn-map-viewer.component.spec.ts diff --git a/apps/webcomponents/src/app/components/gn-map-viewer/gn-map-viewer.component.spec.ts b/apps/webcomponents/src/app/components/gn-map-viewer/gn-map-viewer.component.spec.ts deleted file mode 100644 index ea75937e8b..0000000000 --- a/apps/webcomponents/src/app/components/gn-map-viewer/gn-map-viewer.component.spec.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing' -import { GnMapViewerComponent } from './gn-map-viewer.component' -import { SearchFacade } from '@geonetwork-ui/feature/search' -import { MapFacade } from '@geonetwork-ui/feature/map' -import { TranslateModule } from '@ngx-translate/core' -import { NO_ERRORS_SCHEMA } from '@angular/core' - -class SearchFacadeMock {} -class MapFacadeMock {} - -describe('GnMapViewerComponent', () => { - let component: GnMapViewerComponent - let fixture: ComponentFixture - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [GnMapViewerComponent], - imports: [TranslateModule.forRoot()], - schemas: [NO_ERRORS_SCHEMA], - }) - .overrideComponent(GnMapViewerComponent, { - set: { - providers: [ - { - provide: SearchFacade, - useClass: SearchFacadeMock, - }, - { - provide: MapFacade, - useClass: MapFacadeMock, - }, - ], - }, - }) - .compileComponents() - - fixture = TestBed.createComponent(GnMapViewerComponent) - component = fixture.componentInstance - fixture.detectChanges() - }) - - it('should create', () => { - expect(component).toBeTruthy() - }) -})