Component: Block UI - JEST error when destroy component if 'mask' is undefined #12254
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
After running a JEST test on a component depending on BlockUI, the test failed during the clean up phase (when ngOnDestroy functions are called)
This appears because
this.mask
can be undefined when blockUi componant is destroyed.Environment
Windows 10
NodeJS 18.12.0
Angular 14.2.0
Jest 28.1.1
Reproducer
No response
Angular version
14.2.0
PrimeNG version
14.2.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.12.0
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: