-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ACS-5600] AlfrescoViewerComponent shows the original mimetype #9095
Conversation
lib/content-services/src/lib/viewer/components/alfresco-viewer.component.html
Outdated
Show resolved
Hide resolved
}; | ||
|
||
component.originalMimeType = nodeData.content.mimeType; | ||
expect(component.originalMimeType).toEqual(nodeData.content.mimeType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This unit test is setting one thing and then expecting the same thing which was set in previous test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have modified the test cases
136be23
to
0efc094
Compare
b66d714
to
c6fca56
Compare
lib/content-services/src/lib/viewer/components/alfresco-viewer.component.spec.ts
Outdated
Show resolved
Hide resolved
lib/content-services/src/lib/viewer/components/alfresco-viewer.component.spec.ts
Outdated
Show resolved
Hide resolved
9310bb1
to
2e77347
Compare
lib/content-services/src/lib/viewer/components/alfresco-viewer.component.spec.ts
Outdated
Show resolved
Hide resolved
lib/content-services/src/lib/viewer/components/alfresco-viewer.component.spec.ts
Outdated
Show resolved
Hide resolved
be3a063
to
f4211fc
Compare
3702d58
to
5712e39
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
The new viewer shows a PDF icon in the toolbar for documents having a PDF rendition (eg: DOCX, ODT, etc).
What is the new behaviour?
The new viewer shows the mimetype of the document and not the mimetype of the rendition.
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:
https://alfresco.atlassian.net/browse/ACS-5600