Files
adastra_app/src/app/components/herowars/herowars.component.spec.ts
T
julien fa00719a3e feat(herowars): migrate JSON static imports to HttpClient assets
Replace all TypeScript JSON imports with an HWDataService that loads
6 data files from /assets/files-data/ via HttpClient with shareReplay(1).
Update all 9 consumer components to subscribe asynchronously. Remove
unused qcm-bpa.json import and dead methods from QcmComponent.
Add ADR 0013 documenting the decision.
2026-04-26 23:46:35 +02:00

33 lines
1.1 KiB
TypeScript

import { ComponentFixture, TestBed } from '@angular/core/testing';
import { provideAnimations } from '@angular/platform-browser/animations';
import { provideNativeDateAdapter } from '@angular/material/core';
import { provideHttpClient } from '@angular/common/http';
import { provideHttpClientTesting } from '@angular/common/http/testing';
import { HerowarsComponent } from './herowars.component';
describe('HerowarsComponent', () => {
let component: HerowarsComponent;
let fixture: ComponentFixture<HerowarsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [HerowarsComponent],
providers: [
provideAnimations(),
provideNativeDateAdapter(),
provideHttpClient(),
provideHttpClientTesting(),
],
}).compileComponents();
fixture = TestBed.createComponent(HerowarsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});