app.component.spec.ts 552 B

123456789101112131415161718192021
  1. import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
  2. import { TestBed } from '@angular/core/testing';
  3. import { AppComponent } from './app.component';
  4. describe('AppComponent', () => {
  5. beforeEach(async () => {
  6. await TestBed.configureTestingModule({
  7. declarations: [AppComponent],
  8. schemas: [CUSTOM_ELEMENTS_SCHEMA],
  9. }).compileComponents();
  10. });
  11. it('should create the app', () => {
  12. const fixture = TestBed.createComponent(AppComponent);
  13. const app = fixture.componentInstance;
  14. expect(app).toBeTruthy();
  15. });
  16. });