import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { IonicModule } from '@ionic/angular'; import { TopbarComponent } from './topbar.component'; describe('TopbarComponent', () => { let component: TopbarComponent; let fixture: ComponentFixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [ TopbarComponent ], imports: [IonicModule.forRoot()] }).compileComponents(); fixture = TestBed.createComponent(TopbarComponent); component = fixture.componentInstance; fixture.detectChanges(); })); it('should create', () => { expect(component).toBeTruthy(); }); });