diff --git a/packages/upgrade/test/static/integration/upgrade_component_spec.ts b/packages/upgrade/test/static/integration/upgrade_component_spec.ts index a2d31286a3..33f3a8906c 100644 --- a/packages/upgrade/test/static/integration/upgrade_component_spec.ts +++ b/packages/upgrade/test/static/integration/upgrade_component_spec.ts @@ -1028,7 +1028,10 @@ export function main() { // Define `ng1Component` const ng1ComponentA: angular.IComponent = {template: 'ng1A()'}; const ng1DirectiveB: angular.IDirective = { - compile: tElem => grandParentNodeName = tElem.parent !().parent !()[0].nodeName + compile: tElem => { + grandParentNodeName = tElem.parent !().parent !()[0].nodeName; + return {}; + } }; // Define `Ng1ComponentAFacade`