Source Mapping is not working on test debugging (#1931)

* coverage single components run fix

* remove spec.ts from coverage

* make the coverage and the istanbul-instrumenter-loader works only over the console test because a problem on the remapping for the browser test

* move tslint on the main folder of any component

* remove build:w from readme

* stop build tslint error also in spec files

* clear karma file from unnecessary files

* add set -f for build all script in order to accept *

* fix lint problem and failing tests

* fix failing test search component

* add loader test for viewer

* fix tslint error userinfo

* --max_old_space_size=2048 remove

* fix tslint error uploader unused EventEmitter

* remove spec|index|.*mock|.*model|.*event from coverage
This commit is contained in:
Eugenio Romano
2017-06-04 23:36:46 +01:00
committed by Eugenio Romano
parent ed30b74ce6
commit 282e64f93d
220 changed files with 1799 additions and 2905 deletions

View File

@@ -31,7 +31,6 @@ import { Observable } from 'rxjs/Rx';
declare let jasmine: any;
let fakeNodeAnswerWithEntries = {
'list': {
'pagination': {

View File

@@ -232,7 +232,9 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
}
if (changes['node'] && changes['node'].currentValue) {
this.data.loadPage(changes['node'].currentValue);
if (this.data) {
this.data.loadPage(changes['node'].currentValue);
}
return;
}
}
@@ -363,11 +365,11 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
// gets folder node and its content
loadFolderByNodeId(nodeId: string) {
this.documentListService.getFolderNode(nodeId).then(node => {
this.folderNode = node;
this.currentFolderId = node.id;
this.skipCount = 0;
this.loadFolderNodesByFolderNodeId(node.id, this.pageSize, this.skipCount).catch(err => this.error.emit(err));
})
this.folderNode = node;
this.currentFolderId = node.id;
this.skipCount = 0;
this.loadFolderNodesByFolderNodeId(node.id, this.pageSize, this.skipCount).catch(err => this.error.emit(err));
})
.catch(err => this.error.emit(err));
}

View File

@@ -27,6 +27,7 @@ import {
} from 'ng2-alfresco-core';
import { DocumentListService } from './../services/document-list.service';
import { DocumentMenuActionComponent } from './document-menu-action.component';
import { MdMenuModule, MdButtonModule, MdIconModule } from '@angular/material';
declare let jasmine: any;
@@ -89,7 +90,10 @@ describe('Document menu action', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
CoreModule
CoreModule,
MdMenuModule,
MdButtonModule,
MdIconModule
],
declarations: [DocumentMenuActionComponent],
providers: [