This commit introduces a new `DetailsComponent` for displaying detailed punishment data and establishes a route to view punishment history by ID and type. It also updates the API to support fetching individual punishment records and refines database mappings for improved data handling.
24 lines
599 B
TypeScript
24 lines
599 B
TypeScript
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
|
|
import { DetailsComponent } from './details.component';
|
|
|
|
describe('DetailsComponent', () => {
|
|
let component: DetailsComponent;
|
|
let fixture: ComponentFixture<DetailsComponent>;
|
|
|
|
beforeEach(async () => {
|
|
await TestBed.configureTestingModule({
|
|
imports: [DetailsComponent]
|
|
})
|
|
.compileComponents();
|
|
|
|
fixture = TestBed.createComponent(DetailsComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|