took a look at coverage

a journey for another time
This commit is contained in:
alicia pritchett 2021-09-27 11:19:33 -04:00
parent b2dfe2a3a4
commit 8ad6c8774c
2 changed files with 8 additions and 3 deletions

View File

@ -26,6 +26,14 @@ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
One way to check for coverage:
Install lcov (in ubuntu: sudo apt-get install lcov)
run `ng test --no-watch --code-coverage` to generate a coverage directory, with an lcov file in it
run `genhtml coverage/lcov.info -o coverage/html` to generate an html doc that looks at coverage (index.html)
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

View File

@ -79,7 +79,6 @@ export class WorkflowSpecListComponent implements OnInit {
this.searchField = new FormControl();
this.searchField.valueChanges.subscribe(value => {
this._loadWorkflowSpecs(null, value);
console.log(value);
});
}
@ -220,7 +219,6 @@ export class WorkflowSpecListComponent implements OnInit {
}
editCategoryDisplayOrder(catId: number, direction: string) {
console.log('new wfsbycat is: ', this.workflowSpecsByCategory);
this.api.reorderWorkflowCategory(catId, direction).subscribe(cat_change => {
this.workflowSpecsByCategory = this.workflowSpecsByCategory.map(cat => {
let new_cat = cat_change.find(i2 => i2.id === cat.id);
@ -305,7 +303,6 @@ export class WorkflowSpecListComponent implements OnInit {
standalone: data.standalone,
library: data.library,
};
console.log('DO: ', data.display_order);
if (isNew) {
this._addWorkflowSpec(newSpec);