document-list improvements (#1169)

* #1167 document-list improvements

- allow setting custom root path
- document-list module now re-exports datatable module (no need
importing it separately if document-list is already used)
- documentation updates and fixes

* readme updates and unit test
This commit is contained in:
Denys Vuika
2016-11-29 12:03:24 +00:00
committed by Eugenio Romano
parent 132e6eac96
commit 9066ce49e0
7 changed files with 43 additions and 30 deletions

View File

@@ -47,6 +47,14 @@ describe('DocumentList', () => {
window['componentHandler'] = componentHandler;
});
it('should update root path', () => {
let adapter = documentList.data;
expect(adapter.rootPath).toBe(adapter.DEFAULT_ROOT_PATH);
documentList.rootPath = '-shared-';
expect(adapter.rootPath).toBe('-shared-');
});
it('should setup default columns', () => {
spyOn(documentList, 'setupDefaultColumns').and.callThrough();