Skip to content

Commit 5bdd291

Browse files
Revert "fix(core): Testing should not throw when Zone does not patch test FW APIs (#61628)" (#61637)
This reverts commit 3d4ddd2. PR Close #61637
1 parent f400e9c commit 5bdd291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/testing/src/fake_async.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function resetFakeAsyncZoneIfExists(): void {
5959
* @publicApi
6060
*/
6161
export function fakeAsync(fn: Function, options?: {flush?: boolean}): (...args: any[]) => any {
62-
if (fakeAsyncTestModule && (Zone as any)['ProxyZoneSpec']?.isLoaded()) {
62+
if (fakeAsyncTestModule) {
6363
return fakeAsyncTestModule.fakeAsync(fn, options);
6464
}
6565
throw new Error(fakeAsyncTestModuleNotLoadedErrorMessage);

0 commit comments

Comments
 (0)