mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
[ACS-5540]Implemented the changes as per the review comments
This commit is contained in:
@@ -226,7 +226,7 @@ describe('navigation.evaluators', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('isDetails', () => {
|
describe('isDetails', () => {
|
||||||
it('should return [true] if url ends with `/details`', () => {
|
it('should return true if url ends with `/details`', () => {
|
||||||
const context: any = {
|
const context: any = {
|
||||||
navigation: {
|
navigation: {
|
||||||
url: '/path/details'
|
url: '/path/details'
|
||||||
@@ -236,7 +236,7 @@ describe('navigation.evaluators', () => {
|
|||||||
expect(app.isDetails(context)).toBe(true);
|
expect(app.isDetails(context)).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return [true] if url starts with `/details`', () => {
|
it('should return true if url starts with `/details`', () => {
|
||||||
const context: any = {
|
const context: any = {
|
||||||
navigation: {
|
navigation: {
|
||||||
url: '/details/path'
|
url: '/details/path'
|
||||||
@@ -246,7 +246,7 @@ describe('navigation.evaluators', () => {
|
|||||||
expect(app.isDetails(context)).toBe(true);
|
expect(app.isDetails(context)).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return [true] if url includes with `/details`', () => {
|
it('should return true if url includes with `/details`', () => {
|
||||||
const context: any = {
|
const context: any = {
|
||||||
navigation: {
|
navigation: {
|
||||||
url: '/details/path'
|
url: '/details/path'
|
||||||
|
Reference in New Issue
Block a user