(
template: (rf: any) => void,
vars: number,
consts?: (number | string)[][],
)
| 675 | |
| 676 | describe('AOT-compiled components', () => { |
| 677 | function createComponent( |
| 678 | template: (rf: any) => void, |
| 679 | vars: number, |
| 680 | consts?: (number | string)[][], |
| 681 | ) { |
| 682 | class Comp { |
| 683 | static ɵfac = () => new Comp(); |
| 684 | static ɵcmp = defineComponent({ |
| 685 | type: Comp, |
| 686 | selectors: [['comp']], |
| 687 | decls: 1, |
| 688 | vars, |
| 689 | consts, |
| 690 | template, |
| 691 | encapsulation: 2, |
| 692 | }); |
| 693 | } |
| 694 | setClassMetadata( |
| 695 | Comp, |
| 696 | [ |
| 697 | { |
| 698 | type: Component, |
| 699 | args: [{selector: 'comp', template: '...'}], |
| 700 | }, |
| 701 | ], |
| 702 | null, |
| 703 | null, |
| 704 | ); |
| 705 | return Comp; |
| 706 | } |
| 707 | |
| 708 | function createNgModule(Comp: any) { |
| 709 | class Module { |
no test coverage detected
searching dependent graphs…