[FIX] compiler: does not modify xml doc in place

This commit is contained in:
Géry Debongnie
2022-01-27 09:42:33 +01:00
committed by Aaron Bohy
parent 3af5e57825
commit e4b4ee471f
6 changed files with 64 additions and 22 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ export function snapshotEverything() {
});
const originalCompileTemplate = TemplateSet.prototype._compileTemplate;
TemplateSet.prototype._compileTemplate = function (name: string, template: string | Node) {
TemplateSet.prototype._compileTemplate = function (name: string, template: string | Element) {
const fn = originalCompileTemplate.call(this, "", template);
if (!globalTemplateNames.has(name)) {
expect(fn.toString()).toMatchSnapshot();