Skip to content

Commit

Permalink
fix(core): fix fakeAsync() error messages (#40442)
Browse files Browse the repository at this point in the history
Fix error messages when calling `fakeAsync()` without importing `zone-testing.js`

PR Close #40442
  • Loading branch information
JiaLiPassion authored and AndrewKushnir committed Jan 19, 2021
1 parent 524415e commit ad2b50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/testing/src/fake_async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;

/**
Expand Down

0 comments on commit ad2b50b

Please sign in to comment.