Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wurstbrot committed Nov 22, 2023
1 parent ab1c226 commit 9a0031b
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,17 @@ describe('ActivityDescriptionComponent', () => {
);
});

it('check if references is being genenrated', () => {
it('check if references is being generated', () => {
const testSAMM = [' Sample SAMM '];
const testISO = [' Sample ISO'];
const testISO22 = [' Sample ISO22'];
const testOpenCRE = [' Sample openCRE'];
const uuid = 'abcd'; // for openCRE

component.currentActivity.samm = testSAMM;
component.currentActivity.iso = testISO;
component.currentActivity.iso22 = testISO22;
component.currentActivity.openCRE = testOpenCRE;
component.currentActivity.uuid = uuid;

fixture.detectChanges();
const HTMLElement: HTMLElement = fixture.nativeElement;
const contentDisplayedinParagraphTag = HTMLElement.querySelectorAll('p')!;
Expand All @@ -144,7 +146,7 @@ describe('ActivityDescriptionComponent', () => {
component.ISO22Version +
testISO22[0] +
component.openCREVersion +
testOpenCRE[0]
uuid
);
});
});

0 comments on commit 9a0031b

Please sign in to comment.