[FIX] re-introduce tests

This commit is contained in:
Lucas Perais (lpe)
2021-10-18 17:52:25 +02:00
committed by Aaron Bohy
parent d569ea1c28
commit 10df0b5f4a
17 changed files with 616 additions and 79 deletions
+7
View File
@@ -15,6 +15,13 @@ describe("t-call (template calling)", () => {
expect(context.renderToString("caller")).toBe("<div><span>ok</span></div>");
});
test.skip("t-call, global templates", () => {
// QWeb.registerTemplate("abcd", '<div><t t-call="john"/></div>');
// qweb.addTemplate("john", `<span>desk</span>`);
// const expected = "<div><span>desk</span></div>";
// expect(trim(renderToString(qweb, "abcd"))).toBe(expected);
});
test("basic caller, no parent node", () => {
const context = new TestContext();
context.addTemplate("_basic-callee", `<span>ok</span>`);