mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-9158] Remove 'View Details' button from node Details page (#4351)
* [ACS-9158] Remove 'View Details' button from node Details page * [ACS-9158] remove redundant onDestroy$ * cr fix
This commit is contained in:
committed by
GitHub
parent
c799049790
commit
4751dcd12c
@@ -247,6 +247,28 @@ describe('navigation.evaluators', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('isNotDetails', () => {
|
||||
it('should return true if url does not include `/details`', () => {
|
||||
const context: any = {
|
||||
navigation: {
|
||||
url: '/path'
|
||||
}
|
||||
};
|
||||
|
||||
expect(app.isNotDetails(context)).toBe(true);
|
||||
});
|
||||
|
||||
it('should return false if url includes `/details`', () => {
|
||||
const context: any = {
|
||||
navigation: {
|
||||
url: 'personal-files/details/path'
|
||||
}
|
||||
};
|
||||
|
||||
expect(app.isNotDetails(context)).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('isRecentFiles', () => {
|
||||
it('should return [true] if url starts with `/recent-files`', () => {
|
||||
const context: any = {
|
||||
|
Reference in New Issue
Block a user