@@ -4,22 +4,22 @@ import { RouterTestingModule } from '@angular/router/testing';
44import { sample } from 'rxjs' ;
55import { ymlService } from 'src/app/service/yaml-parser/yaml-parser.service' ;
66
7- import { TaskDescriptionComponent } from './task -description.component' ;
7+ import { ActivityDescriptionComponent } from './activity -description.component' ;
88
9- describe ( 'TaskDescriptionComponent ' , ( ) => {
10- let component : TaskDescriptionComponent ;
11- let fixture : ComponentFixture < TaskDescriptionComponent > ;
9+ describe ( 'ActivityDescriptionComponent ' , ( ) => {
10+ let component : ActivityDescriptionComponent ;
11+ let fixture : ComponentFixture < ActivityDescriptionComponent > ;
1212
1313 beforeEach ( async ( ) => {
1414 await TestBed . configureTestingModule ( {
1515 providers : [ ymlService , HttpClient , HttpHandler ] ,
1616 imports : [ RouterTestingModule ] ,
17- declarations : [ TaskDescriptionComponent ] ,
17+ declarations : [ ActivityDescriptionComponent ] ,
1818 } ) . compileComponents ( ) ;
1919 } ) ;
2020
2121 beforeEach ( ( ) => {
22- fixture = TestBed . createComponent ( TaskDescriptionComponent ) ;
22+ fixture = TestBed . createComponent ( ActivityDescriptionComponent ) ;
2323 component = fixture . componentInstance ;
2424 fixture . detectChanges ( ) ;
2525 } ) ;
@@ -31,8 +31,8 @@ describe('TaskDescriptionComponent', () => {
3131 it ( 'check if header is being genenrated' , ( ) => {
3232 const testDimension = 'Sample Dimension' ;
3333 const testSubDimension = 'Sample subDimension' ;
34- component . currentTask . dimension = testDimension ;
35- component . currentTask . subDimension = testSubDimension ;
34+ component . currentActivity . dimension = testDimension ;
35+ component . currentActivity . subDimension = testSubDimension ;
3636 fixture . detectChanges ( ) ;
3737 const HTMLElement : HTMLElement = fixture . nativeElement ;
3838 const heading = HTMLElement . querySelector ( 'h1' ) ! ;
@@ -42,7 +42,7 @@ describe('TaskDescriptionComponent', () => {
4242
4343 it ( 'check if description is being genenrated' , ( ) => {
4444 const testDescription = 'Sample Description' ;
45- component . currentTask . description = testDescription ;
45+ component . currentActivity . description = testDescription ;
4646 fixture . detectChanges ( ) ;
4747 const HTMLElement : HTMLElement = fixture . nativeElement ;
4848 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -53,7 +53,7 @@ describe('TaskDescriptionComponent', () => {
5353
5454 it ( 'check if risk is being genenrated' , ( ) => {
5555 const testRisk = 'Sample Risk' ;
56- component . currentTask . risk = testRisk ;
56+ component . currentActivity . risk = testRisk ;
5757 fixture . detectChanges ( ) ;
5858 const HTMLElement : HTMLElement = fixture . nativeElement ;
5959 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -62,7 +62,7 @@ describe('TaskDescriptionComponent', () => {
6262
6363 it ( 'check if measure is being genenrated' , ( ) => {
6464 const testMeasure = 'Sample Measure' ;
65- component . currentTask . measure = testMeasure ;
65+ component . currentActivity . measure = testMeasure ;
6666 fixture . detectChanges ( ) ;
6767 const HTMLElement : HTMLElement = fixture . nativeElement ;
6868 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -73,7 +73,7 @@ describe('TaskDescriptionComponent', () => {
7373
7474 it ( 'check if implementation guide is being genenrated' , ( ) => {
7575 const testImplementationGuide = 'Sample Implementation Guide' ;
76- component . currentTask . implementatonGuide = testImplementationGuide ;
76+ component . currentActivity . implementatonGuide = testImplementationGuide ;
7777 fixture . detectChanges ( ) ;
7878 const HTMLElement : HTMLElement = fixture . nativeElement ;
7979 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -84,7 +84,7 @@ describe('TaskDescriptionComponent', () => {
8484
8585 it ( 'check if evidence is being genenrated' , ( ) => {
8686 const testEvidence = 'Sample Evidence' ;
87- component . currentTask . evidence = testEvidence ;
87+ component . currentActivity . evidence = testEvidence ;
8888 fixture . detectChanges ( ) ;
8989 const HTMLElement : HTMLElement = fixture . nativeElement ;
9090 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -95,7 +95,7 @@ describe('TaskDescriptionComponent', () => {
9595
9696 it ( 'check if assessment is being genenrated' , ( ) => {
9797 const testAssessment = 'Sample Assessment' ;
98- component . currentTask . assessment = testAssessment ;
98+ component . currentActivity . assessment = testAssessment ;
9999 fixture . detectChanges ( ) ;
100100 const HTMLElement : HTMLElement = fixture . nativeElement ;
101101 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -106,7 +106,7 @@ describe('TaskDescriptionComponent', () => {
106106
107107 it ( 'check if comments is being genenrated' , ( ) => {
108108 const testComments = 'Sample Comments' ;
109- component . currentTask . comments = testComments ;
109+ component . currentActivity . comments = testComments ;
110110 fixture . detectChanges ( ) ;
111111 const HTMLElement : HTMLElement = fixture . nativeElement ;
112112 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -119,9 +119,9 @@ describe('TaskDescriptionComponent', () => {
119119 const testSAMM = [ ' Sample SAMM ' ] ;
120120 const testISO = [ ' Sample ISO' ] ;
121121 const testISO22 = [ ' Sample ISO22' ] ;
122- component . currentTask . samm = testSAMM ;
123- component . currentTask . iso = testISO ;
124- component . currentTask . iso22 = testISO22 ;
122+ component . currentActivity . samm = testSAMM ;
123+ component . currentActivity . iso = testISO ;
124+ component . currentActivity . iso22 = testISO22 ;
125125 fixture . detectChanges ( ) ;
126126 const HTMLElement : HTMLElement = fixture . nativeElement ;
127127 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
0 commit comments