Skip to content

Commit

Permalink
test(about): add missing imports and providers
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitMY committed Oct 17, 2024
1 parent bd9e884 commit fe0d732
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,24 @@ import {AboutBenefitsComponent} from './about-benefits.component';
import {axe, toHaveNoViolations} from 'jasmine-axe';
import {AppTranslocoTestingModule} from '../../../../core/modules/transloco/transloco-testing.module';
import {IonicModule} from '@ionic/angular';
import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
import {register} from 'swiper/element/bundle';
import {LazyMapComponent} from '../lazy-map/lazy-map.component';
import {provideHttpClient} from '@angular/common/http';
import {provideHttpClientTesting} from '@angular/common/http/testing';

register();

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

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [AboutBenefitsComponent],
declarations: [AboutBenefitsComponent, LazyMapComponent],
imports: [AppTranslocoTestingModule, IonicModule.forRoot()],
providers: [provideHttpClient(), provideHttpClientTesting()],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
}).compileComponents();

fixture = TestBed.createComponent(AboutBenefitsComponent);
Expand Down
2 changes: 2 additions & 0 deletions src/app/pages/landing/about/about.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {AboutTeamComponent} from './about-team/about-team.component';
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
import {AboutPricingComponent} from './about-pricing/about-pricing.component';
import {ReactiveFormsModule} from '@angular/forms';
import {LazyMapComponent} from './lazy-map/lazy-map.component';

describe('AboutComponent', () => {
let component: AboutComponent;
Expand All @@ -41,6 +42,7 @@ describe('AboutComponent', () => {
AboutPricingComponent,
AboutApiComponent,
StoresComponent,
LazyMapComponent,
],
imports: [
AppTranslocoTestingModule,
Expand Down

0 comments on commit fe0d732

Please sign in to comment.