EchoTex_Payroll/HRM.UI/ClientApp/src/app/app.component.spec.ts
2024-10-14 10:01:49 +06:00

35 lines
1.4 KiB
TypeScript

import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { AppComponent } from './app.component';
import { AppTopBarComponent } from './app.topbar.component';
import { AppBreadcrumbComponent } from './app.breadcrumb.component';
import { AppProfileComponent } from './app.profile.component';
import { BreadcrumbService } from './app.breadcrumb.service';
import { AppFooterComponent } from './app.footer.component';
import { AppMenuComponent } from './app.menu.component';
import { AccordionModule } from 'primeng/accordion';
import { PanelModule } from 'primeng/panel';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [NoopAnimationsModule, RouterTestingModule, AccordionModule, PanelModule],
declarations: [
AppComponent,
AppTopBarComponent,
AppMenuComponent,
AppProfileComponent,
AppFooterComponent,
AppBreadcrumbComponent
],
providers: [BreadcrumbService]
}).compileComponents();
}));
it('should create the app', async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
}));
});