Fix tests
This commit is contained in:
@@ -8,10 +8,6 @@ class TestTemplateParser extends AbstractTemplateParser {
|
||||
return this._isAngularComponent(filePath);
|
||||
}
|
||||
|
||||
public normalizeTemplateAttributes(template: string): string {
|
||||
return this._normalizeTemplateAttributes(template);
|
||||
}
|
||||
|
||||
public extractInlineTemplate(contents: string): string {
|
||||
return this._extractInlineTemplate(contents);
|
||||
}
|
||||
@@ -41,12 +37,6 @@ describe('AbstractTemplateParser', () => {
|
||||
expect(result).to.equal(false);
|
||||
});
|
||||
|
||||
it('should normalize bound attributes', () => {
|
||||
const contents = `<p [translate]="'KEY'">Hello World</p>`;
|
||||
const template = parser.normalizeTemplateAttributes(contents);
|
||||
expect(template).to.equal('<p translate="KEY">Hello World</p>');
|
||||
});
|
||||
|
||||
it('should extract inline template', () => {
|
||||
const contents = `
|
||||
@Component({
|
||||
|
Reference in New Issue
Block a user