We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8fa3e commit b13818aCopy full SHA for b13818a
src/cdk/a11y/live-announcer/live-announcer.ts
@@ -135,7 +135,9 @@ export class LiveAnnouncer implements OnDestroy {
135
this._previousTimeout = setTimeout(() => this.clear(), duration);
136
}
137
138
- this._currentResolve!();
+ // For some reason in tests this can be undefined
139
+ // Probably related to ZoneJS and every other thing that patches browser APIs in tests
140
+ this._currentResolve?.();
141
this._currentPromise = this._currentResolve = undefined;
142
}, 100);
143
0 commit comments