@@ -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 UUID is being genenrated' , ( ) => {
4444 const testUUID = '00000000-0000-0000-0000-000000000000' ;
45- component . currentTask . uuid = testUUID ;
45+ component . currentActivity . uuid = testUUID ;
4646 fixture . detectChanges ( ) ;
4747 const HTMLElement : HTMLElement = fixture . nativeElement ;
4848 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -51,7 +51,7 @@ describe('TaskDescriptionComponent', () => {
5151
5252 it ( 'check if description is being genenrated' , ( ) => {
5353 const testDescription = 'Sample Description' ;
54- component . currentTask . description = testDescription ;
54+ component . currentActivity . description = testDescription ;
5555 fixture . detectChanges ( ) ;
5656 const HTMLElement : HTMLElement = fixture . nativeElement ;
5757 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -62,7 +62,7 @@ describe('TaskDescriptionComponent', () => {
6262
6363 it ( 'check if risk is being genenrated' , ( ) => {
6464 const testRisk = 'Sample Risk' ;
65- component . currentTask . risk = testRisk ;
65+ component . currentActivity . risk = testRisk ;
6666 fixture . detectChanges ( ) ;
6767 const HTMLElement : HTMLElement = fixture . nativeElement ;
6868 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -71,7 +71,7 @@ describe('TaskDescriptionComponent', () => {
7171
7272 it ( 'check if measure is being genenrated' , ( ) => {
7373 const testMeasure = 'Sample Measure' ;
74- component . currentTask . measure = testMeasure ;
74+ component . currentActivity . measure = testMeasure ;
7575 fixture . detectChanges ( ) ;
7676 const HTMLElement : HTMLElement = fixture . nativeElement ;
7777 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -82,7 +82,7 @@ describe('TaskDescriptionComponent', () => {
8282
8383 it ( 'check if implementation guide is being genenrated' , ( ) => {
8484 const testImplementationGuide = 'Sample Implementation Guide' ;
85- component . currentTask . implementatonGuide = testImplementationGuide ;
85+ component . currentActivity . implementatonGuide = testImplementationGuide ;
8686 fixture . detectChanges ( ) ;
8787 const HTMLElement : HTMLElement = fixture . nativeElement ;
8888 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -93,7 +93,7 @@ describe('TaskDescriptionComponent', () => {
9393
9494 it ( 'check if evidence is being genenrated' , ( ) => {
9595 const testEvidence = 'Sample Evidence' ;
96- component . currentTask . evidence = testEvidence ;
96+ component . currentActivity . evidence = testEvidence ;
9797 fixture . detectChanges ( ) ;
9898 const HTMLElement : HTMLElement = fixture . nativeElement ;
9999 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -104,7 +104,7 @@ describe('TaskDescriptionComponent', () => {
104104
105105 it ( 'check if assessment is being genenrated' , ( ) => {
106106 const testAssessment = 'Sample Assessment' ;
107- component . currentTask . assessment = testAssessment ;
107+ component . currentActivity . assessment = testAssessment ;
108108 fixture . detectChanges ( ) ;
109109 const HTMLElement : HTMLElement = fixture . nativeElement ;
110110 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -115,7 +115,7 @@ describe('TaskDescriptionComponent', () => {
115115
116116 it ( 'check if comments is being genenrated' , ( ) => {
117117 const testComments = 'Sample Comments' ;
118- component . currentTask . comments = testComments ;
118+ component . currentActivity . comments = testComments ;
119119 fixture . detectChanges ( ) ;
120120 const HTMLElement : HTMLElement = fixture . nativeElement ;
121121 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
@@ -128,9 +128,9 @@ describe('TaskDescriptionComponent', () => {
128128 const testSAMM = [ ' Sample SAMM ' ] ;
129129 const testISO = [ ' Sample ISO' ] ;
130130 const testISO22 = [ ' Sample ISO22' ] ;
131- component . currentTask . samm = testSAMM ;
132- component . currentTask . iso = testISO ;
133- component . currentTask . iso22 = testISO22 ;
131+ component . currentActivity . samm = testSAMM ;
132+ component . currentActivity . iso = testISO ;
133+ component . currentActivity . iso22 = testISO22 ;
134134 fixture . detectChanges ( ) ;
135135 const HTMLElement : HTMLElement = fixture . nativeElement ;
136136 const contentDisplayedinParagraphTag = HTMLElement . querySelectorAll ( 'p' ) ! ;
0 commit comments