(
template: (rf: any) => void,
vars: number,
consts?: (number | string)[][],
)
| 663 | |
| 664 | describe('AOT-compiled components', () => { |
| 665 | function createComponent( |
| 666 | template: (rf: any) => void, |
| 667 | vars: number, |
| 668 | consts?: (number | string)[][], |
| 669 | ) { |
| 670 | class Comp { |
| 671 | static ɵfac = () => new Comp(); |
| 672 | static ɵcmp = defineComponent({ |
| 673 | type: Comp, |
| 674 | selectors: [['comp']], |
| 675 | decls: 1, |
| 676 | vars, |
| 677 | consts, |
| 678 | template, |
| 679 | encapsulation: 2, |
| 680 | }); |
| 681 | } |
| 682 | setClassMetadata( |
| 683 | Comp, |
| 684 | [ |
| 685 | { |
| 686 | type: Component, |
| 687 | args: [{selector: 'comp', template: '...'}], |
| 688 | }, |
| 689 | ], |
| 690 | null, |
| 691 | null, |
| 692 | ); |
| 693 | return Comp; |
| 694 | } |
| 695 | |
| 696 | function createNgModule(Comp: any) { |
| 697 | class Module { |
no test coverage detected