Skip to content

Commit

Permalink
[ACS-6423] Unit tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKinas committed Aug 8, 2024
1 parent 6f5c034 commit e0c2dee
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ describe('AttachFileWidgetComponent', () => {
await fixture.whenStable();

fixture.debugElement.query(By.css('#attach-SHAREME')).nativeElement.click();
expect(applyAlfrescoNodeSpy).toHaveBeenCalledWith({ ...fakeNode, isLink: true }, undefined, 'alfresco-1000-SHAREME');
expect(applyAlfrescoNodeSpy).toHaveBeenCalledWith({ ...fakeNode, isLink: true }, undefined, 'alfresco-1000-SHAREMEAlfresco');
});

it('should isLink property of the selected node become false when the widget has link disabled', async () => {
Expand All @@ -294,7 +294,7 @@ describe('AttachFileWidgetComponent', () => {
await fixture.whenStable();

fixture.debugElement.query(By.css('#attach-SHAREME')).nativeElement.click();
expect(applyAlfrescoNodeSpy).toHaveBeenCalledWith({ ...fakeNode, isLink: false }, undefined, 'alfresco-1000-SHAREME');
expect(applyAlfrescoNodeSpy).toHaveBeenCalledWith({ ...fakeNode, isLink: false }, undefined, 'alfresco-1000-SHAREMEAlfresco');
});

it('should be able to upload files coming from content node selector', async () => {
Expand Down Expand Up @@ -617,7 +617,7 @@ describe('AttachFileWidgetComponent', () => {
fixture.detectChanges();
await fixture.whenStable();

expect(openLoginSpy).toHaveBeenCalledWith(fakeRepositoryListAnswer[2], undefined, 'alfresco-2000-external');
expect(openLoginSpy).toHaveBeenCalledWith(fakeRepositoryListAnswer[2], undefined, 'alfresco-2000-externalAlfresco');
});

it('should open fileBrowserDialog if devMode flag is on', async () => {
Expand Down

0 comments on commit e0c2dee

Please sign in to comment.