New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test.spec > Cannot read property 'destroy' of undefined #217
Comments
The library does not have test files yet! |
I encountered the same issue, have to use |
I encountered the same issue. I patched the node_modules/@ngx-progressbar/core/fesm5/ngx-progressbar-core.js like this by adding a test before calling NgProgressComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this._started.unsubscribe();
this._completed.unsubscribe();
if (this.progressRef instanceof NgProgressRef) {
this.progressRef.destroy();
}
}; Hope that helps to correct this bug. |
I am having the same issue when running |
having the same issue |
As a workaround you can add
|
@MurhafSousli, it looks like @eleftherias's PR has fixed the issue for me (I've tried it by manually building it and replacing the installed package). Will you be releasing it soon? Our build has started failing in Jenkins because of this issue. |
- Updating packages - Fixing build failures (checkout MurhafSousli/ngx-progressbar#217)
ping... any updates? :) |
Fixed in |
Many thanks! 🎆 |
Bug Report or Feature Request (mark with an
x
)OS and Version?
Ubuntu 18
Versions
"@angular/cli": "~7.0.0-rc.1",
"@ngx-progressbar/core": "^5.2.0",
Repro steps
App.component.html
App.component.spec.ts
The log given by the failure
Desired functionality
how to right test component with ngProgressComponent? if i dont want mock it?
The text was updated successfully, but these errors were encountered: