Existing community list test fixes

This commit is contained in:
Marie Verdonck
2019-11-27 10:37:38 +01:00
parent 5ff634a26f
commit db7ebfb16e
2 changed files with 25 additions and 5 deletions

View File

@@ -118,9 +118,21 @@ describe('CommunityListComponent', () => {
topCurrentPage: 1,
collectionPageSize: 2,
subcommunityPageSize: 2,
expandedNodes: [],
loadingNode: null,
getNextPageTopCommunities() {
this.topCurrentPage++;
},
getLoadingNodeFromStore() {
return observableOf(this.loadingNode);
},
getExpandedNodesFromStore() {
return observableOf(this.expandedNodes);
},
saveCommunityListStateToStore(expandedNodes, loadingNode) {
this.expandedNodes = expandedNodes;
this.loadingNode = loadingNode;
},
loadCommunities(expandedNodes) {
let flatnodes;
let showMoreTopComNode = false;