Configured cheerio to work with non-HTML standard elements to fix issues with custom component tags. (#79)
This commit is contained in:
committed by
Kim Biesbjerg
parent
ee28fe2a64
commit
4892ea5146
@@ -118,4 +118,10 @@ describe('DirectiveParser', () => {
|
||||
expect(template).to.equal('<p translate="KEY">Hello World</p>');
|
||||
});
|
||||
|
||||
it('should extract contents from within custom tags', () => {
|
||||
const contents = `<custom-table><tbody><tr><td translate>Hello World</td></tr></tbody></custom-table>`;
|
||||
const keys = parser.extract(contents, templateFilename).keys();
|
||||
expect(keys).to.deep.equal(['Hello World']);
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user