From f95104f12a8e0259032bfc375f112e2045eb1bc7 Mon Sep 17 00:00:00 2001 From: Pierre Narcisi Date: Wed, 13 Mar 2024 14:28:38 +0100 Subject: [PATCH] feat(tests) changing the admin test --- .../src/app/adminModule/admin.component.cy.ts | 18 ++++++++++++++ .../app/adminModule/admin.component.spec.ts | 24 ------------------- 2 files changed, 18 insertions(+), 24 deletions(-) create mode 100644 frontend/src/app/adminModule/admin.component.cy.ts delete mode 100644 frontend/src/app/adminModule/admin.component.spec.ts diff --git a/frontend/src/app/adminModule/admin.component.cy.ts b/frontend/src/app/adminModule/admin.component.cy.ts new file mode 100644 index 0000000000..d8eda66b06 --- /dev/null +++ b/frontend/src/app/adminModule/admin.component.cy.ts @@ -0,0 +1,18 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { AdminComponent } from './admin.component'; +import { GN2CommonModule } from '@geonature_common/GN2Common.module'; +import { AppModule } from '@geonature/app.module'; + +describe('AdminComponent', () => { + + it('show component', () => { + + cy.mount(AdminComponent, { + componentProperties: {}, + imports: [], + declarations: [], + providers: [], + }); + }); +}); diff --git a/frontend/src/app/adminModule/admin.component.spec.ts b/frontend/src/app/adminModule/admin.component.spec.ts deleted file mode 100644 index f0874e43f2..0000000000 --- a/frontend/src/app/adminModule/admin.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { AdminComponent } from './admin.component'; - -describe('AdminComponent', () => { - let component: AdminComponent; - let fixture: ComponentFixture; - - beforeEach(async(() => { - TestBed.configureTestingModule({ - declarations: [AdminComponent], - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(AdminComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -});