mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ADF-3930] Can't load more results in Copy/Move dialog (#4247)
* fix unrelated failing test improve type definition add set get filtering node selector fix directive highlight fix minor problem style breadcrumb small refactoring problem documentlist * fix lint style * fix html node * fix test
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { CUSTOM_ELEMENTS_SCHEMA, SimpleChange } from '@angular/core';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { PathElementEntity } from '@alfresco/js-api';
|
||||
import { setupTestBed } from '@alfresco/adf-core';
|
||||
@@ -52,10 +52,9 @@ describe('Breadcrumb', () => {
|
||||
});
|
||||
|
||||
it('should root be present as default node if the path is null', () => {
|
||||
let change = new SimpleChange(null, fakeNodeWithCreatePermission, true);
|
||||
|
||||
component.root = 'default';
|
||||
component.ngOnChanges({ 'folderNode': change });
|
||||
component.folderNode = fakeNodeWithCreatePermission;
|
||||
component.ngOnChanges(null);
|
||||
|
||||
expect(component.route[0].name).toBe('default');
|
||||
});
|
||||
@@ -211,8 +210,8 @@ describe('Breadcrumb', () => {
|
||||
transformNode.name = 'test-name';
|
||||
return transformNode;
|
||||
});
|
||||
let change = new SimpleChange(null, node, true);
|
||||
component.ngOnChanges({ 'folderNode': change });
|
||||
component.folderNode = node;
|
||||
component.ngOnChanges(null);
|
||||
expect(component.route.length).toBe(4);
|
||||
expect(component.route[3].id).toBe('test-id');
|
||||
expect(component.route[3].name).toBe('test-name');
|
||||
|
Reference in New Issue
Block a user