parent
b2dfe2a3a4
commit
8ad6c8774c
|
@ -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/).
|
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
|
## 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).
|
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).
|
||||||
|
|
|
@ -79,7 +79,6 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
this.searchField = new FormControl();
|
this.searchField = new FormControl();
|
||||||
this.searchField.valueChanges.subscribe(value => {
|
this.searchField.valueChanges.subscribe(value => {
|
||||||
this._loadWorkflowSpecs(null, value);
|
this._loadWorkflowSpecs(null, value);
|
||||||
console.log(value);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -220,7 +219,6 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
editCategoryDisplayOrder(catId: number, direction: string) {
|
editCategoryDisplayOrder(catId: number, direction: string) {
|
||||||
console.log('new wfsbycat is: ', this.workflowSpecsByCategory);
|
|
||||||
this.api.reorderWorkflowCategory(catId, direction).subscribe(cat_change => {
|
this.api.reorderWorkflowCategory(catId, direction).subscribe(cat_change => {
|
||||||
this.workflowSpecsByCategory = this.workflowSpecsByCategory.map(cat => {
|
this.workflowSpecsByCategory = this.workflowSpecsByCategory.map(cat => {
|
||||||
let new_cat = cat_change.find(i2 => i2.id === cat.id);
|
let new_cat = cat_change.find(i2 => i2.id === cat.id);
|
||||||
|
@ -305,7 +303,6 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
standalone: data.standalone,
|
standalone: data.standalone,
|
||||||
library: data.library,
|
library: data.library,
|
||||||
};
|
};
|
||||||
console.log('DO: ', data.display_order);
|
|
||||||
|
|
||||||
if (isNew) {
|
if (isNew) {
|
||||||
this._addWorkflowSpec(newSpec);
|
this._addWorkflowSpec(newSpec);
|
||||||
|
|
Loading…
Reference in New Issue