import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; import { AccountPage } from './account.page'; import { TranslateModule } from '@ngx-translate/core'; import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'; import { provideHttpClientTesting } from '@angular/common/http/testing'; describe('AccountPage', () => { let component: AccountPage; let fixture: ComponentFixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [AccountPage], schemas: [CUSTOM_ELEMENTS_SCHEMA], imports: [TranslateModule.forRoot()], providers: [provideHttpClient(withInterceptorsFromDi()), provideHttpClientTesting()], }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(AccountPage); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });