Skip to content

Commit 16621ad

Browse files
gkalpakpetebacondarwin
authored andcommitted
fixup! test(upgrade): uncomment test and move to correct file
1 parent 8ee9dee commit 16621ad

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

Diff for: modules/@angular/upgrade/test/aot/integration/downgrade_component_spec.ts

+27-27
Original file line numberDiff line numberDiff line change
@@ -228,32 +228,32 @@ export function main() {
228228
});
229229
}));
230230

231-
it('should allow attribute selectors for components in ng2', () => {
232-
@Component({selector: '[itWorks]', template: 'It works'})
233-
class WorksComponent {
234-
}
235-
236-
@Component({selector: 'root-component', template: '<span itWorks></span>!'})
237-
class RootComponent {
238-
}
239-
240-
@NgModule({
241-
declarations: [RootComponent, WorksComponent],
242-
entryComponents: [RootComponent],
243-
imports: [BrowserModule, UpgradeModule]
244-
})
245-
class Ng2Module {
246-
ngDoBootstrap() {}
247-
}
248-
249-
const ng1Module = angular.module('ng1', []).directive(
250-
'rootComponent', downgradeComponent({component: RootComponent}));
251-
252-
const element = html('<root-component></root-component>');
253-
254-
bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => {
255-
expect(multiTrim(document.body.textContent)).toBe('It works!');
256-
});
257-
});
231+
it('should allow attribute selectors for components in ng2', async(() => {
232+
@Component({selector: '[itWorks]', template: 'It works'})
233+
class WorksComponent {
234+
}
235+
236+
@Component({selector: 'root-component', template: '<span itWorks></span>!'})
237+
class RootComponent {
238+
}
239+
240+
@NgModule({
241+
declarations: [RootComponent, WorksComponent],
242+
entryComponents: [RootComponent],
243+
imports: [BrowserModule, UpgradeModule]
244+
})
245+
class Ng2Module {
246+
ngDoBootstrap() {}
247+
}
248+
249+
const ng1Module = angular.module('ng1', []).directive(
250+
'rootComponent', downgradeComponent({component: RootComponent}));
251+
252+
const element = html('<root-component></root-component>');
253+
254+
bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => {
255+
expect(multiTrim(document.body.textContent)).toBe('It works!');
256+
});
257+
}));
258258
});
259259
}

0 commit comments

Comments
 (0)