Skip to content

Commit

Permalink
[5600]fixed the space
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasa-Nataliya committed Nov 20, 2023
1 parent c3e869b commit 9d44636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,12 +477,14 @@ describe('AlfrescoViewerComponent', () => {
});

describe('mimeTypeForUnknown', () => {

it('should set mimeTypeForUnknown based on nodeData content', () => {
const nodeData = {
content: {
mimeType: 'application/pdf'
}
};

component.mimeTypeForUnknown = nodeData.content.mimeType;
expect(component.mimeTypeForUnknown).toEqual(nodeData.content.mimeType);
});
Expand Down
4 changes: 1 addition & 3 deletions lib/core/src/lib/viewer/components/viewer.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ describe('ViewerComponent', () => {
});

describe('mimeTypeForUnknown', () => {

it('should set mimeType input correctly', () => {
const mimeTypeValue = 'image/png';
component.mimeType = mimeTypeValue;
Expand All @@ -133,12 +134,9 @@ describe('ViewerComponent', () => {
it('should set alt attribute correctly based on mimeTypeForUnknown', () => {
const mimeTypeValue = 'image/jpeg';
const altAttributeValue = 'Alt Text';

component.mimeType = mimeTypeValue;
component.mimeTypeForUnknown = altAttributeValue;

fixture.detectChanges();

const altAttribute = fixture.nativeElement.querySelector('.adf-viewer__mimeicon').getAttribute('alt');

expect(altAttribute).toEqual(altAttributeValue);
Expand Down

0 comments on commit 9d44636

Please sign in to comment.