(Comp: any)
| 706 | } |
| 707 | |
| 708 | function createNgModule(Comp: any) { |
| 709 | class Module { |
| 710 | static ɵmod = defineNgModule({type: Module}); |
| 711 | static ɵinj = defineInjector({}); |
| 712 | } |
| 713 | setClassMetadata( |
| 714 | Module, |
| 715 | [ |
| 716 | { |
| 717 | type: NgModule, |
| 718 | args: [ |
| 719 | { |
| 720 | declarations: [Comp], |
| 721 | schemas: [NO_ERRORS_SCHEMA], |
| 722 | }, |
| 723 | ], |
| 724 | }, |
| 725 | ], |
| 726 | null, |
| 727 | null, |
| 728 | ); |
| 729 | return Module; |
| 730 | } |
| 731 | |
| 732 | it('should not log unknown element warning for AOT-compiled components', () => { |
| 733 | const spy = spyOn(console, 'warn'); |
no test coverage detected
searching dependent graphs…