File tree Expand file tree Collapse file tree
src/app/components/service-card Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { ComponentFixture , TestBed } from '@angular/core/testing' ;
2-
32import { ServiceCardComponent } from './service-card.component' ;
3+ import { ServiceCard } from '../../types/dtos' ;
44
55describe ( 'ServiceCardComponent' , ( ) => {
66 let component : ServiceCardComponent ;
77 let fixture : ComponentFixture < ServiceCardComponent > ;
88
9+ const mockService : ServiceCard = {
10+ legalParticipant : {
11+ id : 1 ,
12+ name : 'Participant' ,
13+ } ,
14+ legalRegistrationNumber : {
15+ id : 1 ,
16+ countryCode : 'de' ,
17+ } ,
18+ serviceOffering : {
19+ id : 1 ,
20+ name : 'Service Offering' ,
21+ description : [ 'A description' ] ,
22+ } ,
23+ serviceAccessPoints : [ ] ,
24+ physicalResources : [ ] ,
25+ dataResources : [ ] ,
26+ } ;
27+
928 beforeEach ( async ( ) => {
1029 await TestBed . configureTestingModule ( {
1130 imports : [ ServiceCardComponent ] ,
1231 } ) . compileComponents ( ) ;
1332
1433 fixture = TestBed . createComponent ( ServiceCardComponent ) ;
1534 component = fixture . componentInstance ;
35+ component . service = mockService ;
1636 fixture . detectChanges ( ) ;
1737 } ) ;
1838
You can’t perform that action at this time.
0 commit comments