diff --git a/packages/upgrade/src/dynamic/test/upgrade_spec.ts b/packages/upgrade/src/dynamic/test/upgrade_spec.ts
index acb2892d5a..28ce7155e7 100644
--- a/packages/upgrade/src/dynamic/test/upgrade_spec.ts
+++ b/packages/upgrade/src/dynamic/test/upgrade_spec.ts
@@ -179,7 +179,7 @@ withEachNg1Version(() => {
class Ng2Module {
}
- const ng1Module = angular.module('ng1', []);
+ const ng1Module = angular.module_('ng1', []);
const adapter: UpgradeAdapter = new UpgradeAdapter(forwardRef(() => Ng2Module));
const element = html('');
@@ -315,7 +315,7 @@ withEachNg1Version(() => {
// }
// const adapter: UpgradeAdapter = new UpgradeAdapter(forwardRef(() => Ng2Module));
- // const ng1Module = angular.module('ng1', []).directive(
+ // const ng1Module = angular.module_('ng1', []).directive(
// 'myApp', adapter.downgradeNg2Component(AppComponent));
// const element = html('');
diff --git a/packages/upgrade/static/test/integration/change_detection_spec.ts b/packages/upgrade/static/test/integration/change_detection_spec.ts
index cacb7cc806..960224cd79 100644
--- a/packages/upgrade/static/test/integration/change_detection_spec.ts
+++ b/packages/upgrade/static/test/integration/change_detection_spec.ts
@@ -38,7 +38,7 @@ withEachNg1Version(() => {
ngDoBootstrap() {}
}
- const ng1Module = angular.module('ng1', []).directive(
+ const ng1Module = angular.module_('ng1', []).directive(
'myApp', downgradeComponent({component: AppComponent}));
bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => {
@@ -193,7 +193,7 @@ withEachNg1Version(() => {
// }
// const adapter: UpgradeAdapter = new UpgradeAdapter(forwardRef(() => Ng2Module));
- // const ng1Module = angular.module('ng1', []).directive(
+ // const ng1Module = angular.module_('ng1', []).directive(
// 'myApp', adapter.downgradeNg2Component(AppComponent));
// const element = html('');