mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] compiler: does not modify xml doc in place
This commit is contained in:
committed by
Samuel Degueldre
parent
0e13b859d0
commit
d7850aaf7a
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user