diff --git a/web/static/tests/core/qweb_vdom.test.ts b/web/static/tests/core/qweb_vdom.test.ts index 5b42dcc0..0b112fb0 100644 --- a/web/static/tests/core/qweb_vdom.test.ts +++ b/web/static/tests/core/qweb_vdom.test.ts @@ -767,4 +767,10 @@ describe("loading templates", () => { const result = renderToString(qweb, "main"); expect(result).toBe(""); }); + + test("does not crash if string does not have templates", () => { + const data = ""; + qweb.loadTemplates(data); + expect(qweb.processedTemplates).toEqual({}); + }); });