mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
[ADF-1220] Extra data sources for Document List (#2224)
* initial trashcan support and demo page * use testbed for unit tests * support for restricting navigation for special data sources * shared links mode, thumbnail fixes * update unit tests * improve Trashcan/SharedLinks columns * Sites view for document list * Favorites support for DL, upgrade to latest js-api (alpha) * recent files support for document list * support default presets * readme updates and code fixes * code fixes * breadcrumb fixes - show custom root node for certain scenarios - fix css issues - fix crash related to missing "path" property for certain scenarios * toolbar style fixes - addresses the shrinking issues with components embedded into toolbar (i.e. breadcrumb) * i18n support for column presets * unit tests
This commit is contained in:
committed by
Mario Romano
parent
6b1742c5f0
commit
def3cbaee8
@@ -15,9 +15,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { DataTableComponent } from 'ng2-alfresco-datatable';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { async, TestBed } from '@angular/core/testing';
|
||||
import { CoreModule } from 'ng2-alfresco-core';
|
||||
import { DataTableComponent, DataTableModule } from 'ng2-alfresco-datatable';
|
||||
import { MaterialModule } from '../../material.module';
|
||||
import { DocumentListService } from '../../services/document-list.service';
|
||||
|
||||
import { DocumentListServiceMock } from './../../assets/document-list.service.mock';
|
||||
import { DocumentListComponent } from './../document-list.component';
|
||||
import { EmptyFolderContentDirective } from './empty-folder-content.directive';
|
||||
|
||||
@@ -26,9 +30,27 @@ describe('EmptyFolderContent', () => {
|
||||
let emptyFolderContent: EmptyFolderContentDirective;
|
||||
let documentList: DocumentListComponent;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
CoreModule,
|
||||
DataTableModule,
|
||||
MaterialModule
|
||||
],
|
||||
declarations: [
|
||||
DocumentListComponent
|
||||
],
|
||||
providers: [
|
||||
DocumentListService
|
||||
],
|
||||
schemas: [
|
||||
CUSTOM_ELEMENTS_SCHEMA
|
||||
]
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
let documentListService = new DocumentListServiceMock();
|
||||
documentList = new DocumentListComponent(documentListService, null, null);
|
||||
documentList = TestBed.createComponent(DocumentListComponent).componentInstance;
|
||||
documentList.dataTable = new DataTableComponent(null, null);
|
||||
emptyFolderContent = new EmptyFolderContentDirective(documentList);
|
||||
});
|
||||
|
Reference in New Issue
Block a user