(tag: string)
| 738 | |
| 739 | describe('unknown template elements', () => { |
| 740 | const unknownElErrorRegex = (tag: string) => { |
| 741 | const prefix = `'${tag}' is not a known element \\(used in the 'AppCmp' component template\\):`; |
| 742 | const message1 = `1. If '${tag}' is an Angular component, then verify that it is included in the '@Component.imports' of this component.`; |
| 743 | const message2 = `2. If '${tag}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message.`; |
| 744 | return new RegExp(`${prefix}s*\ns*${message1}s*\ns*${message2}`); |
| 745 | }; |
| 746 | |
| 747 | it('should warn the user when an unknown element is present', () => { |
| 748 | const spy = spyOn(console, 'error'); |
no outgoing calls
no test coverage detected
searching dependent graphs…