From f49447df20106f0c7f53623d14ae9ac2afb4ca03 Mon Sep 17 00:00:00 2001 From: JiaLiPassion Date: Fri, 15 Jan 2021 14:34:39 +0800 Subject: [PATCH] fix(core): fix fakeAsync() error messages (#40442) Fix error messages when calling `fakeAsync()` without importing `zone-testing.js` PR Close #40442 --- packages/core/testing/src/fake_async.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/testing/src/fake_async.ts b/packages/core/testing/src/fake_async.ts index 1885f5418f..184e2e553a 100644 --- a/packages/core/testing/src/fake_async.ts +++ b/packages/core/testing/src/fake_async.ts @@ -9,7 +9,7 @@ const _Zone: any = typeof Zone !== 'undefined' ? Zone : null; const fakeAsyncTestModule = _Zone && _Zone[_Zone.__symbol__('fakeAsyncTest')]; const fakeAsyncTestModuleNotLoadedErrorMessage = - `zone-testing.js is needed for the async() test helper but could not be found. + `zone-testing.js is needed for the fakeAsync() test helper but could not be found. Please make sure that your environment includes zone.js/dist/zone-testing.js`; /**