mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
update code as per code review
- upgrade demo project - extend readme - remove commented out unit tests
This commit is contained in:
@@ -189,35 +189,6 @@ describe('DocumentList', () => {
|
||||
expect(documentList.loadFolder).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
/*
|
||||
it('should emit folder changed event', (done) => {
|
||||
spyOn(documentList, 'loadFolderByPath').and.returnValue(Promise.resolve());
|
||||
documentList.folderChange.subscribe(e => {
|
||||
done();
|
||||
});
|
||||
|
||||
let newPath = '/some/new/path';
|
||||
documentList.currentFolderPath = newPath;
|
||||
documentList.ngOnChanges({currentFolderPath: new SimpleChange(null, newPath)});
|
||||
});
|
||||
*/
|
||||
|
||||
/*
|
||||
it('should emit folder changed event with folder details', (done) => {
|
||||
spyOn(documentList, 'loadFolderByPath').and.returnValue(Promise.resolve());
|
||||
|
||||
let path = '/path';
|
||||
|
||||
documentList.folderChange.subscribe(e => {
|
||||
expect(e.path).toBe(path);
|
||||
done();
|
||||
});
|
||||
|
||||
documentList.currentFolderPath = path;
|
||||
documentList.ngOnChanges({currentFolderPath: new SimpleChange(null, path)});
|
||||
});
|
||||
*/
|
||||
|
||||
it('should execute context action on callback', () => {
|
||||
let action = {
|
||||
node: {},
|
||||
|
Reference in New Issue
Block a user