This commit is contained in:
Géry Debongnie
2021-10-11 14:00:56 +02:00
parent c86bb6111a
commit 82ab18ad83
2 changed files with 69 additions and 2 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import { QWeb } from "../../src/qweb/index";
import { config } from "../../src/index";
import { nextTick, normalize, renderToDOM, renderToString, trim } from "../helpers";
import { patch } from "../../src/vdom";
import { Markup } from "../../src/utils";
//------------------------------------------------------------------------------
// Setup and helpers
@@ -246,7 +247,7 @@ describe("t-out (formerly t-raw tests)", () => {
test("not escaping", () => {
qweb.addTemplate("test", `<div><t t-out="var"/></div>`);
expect(renderToString(qweb, "test", { var: "<ok></ok>" })).toBe("<div><ok></ok></div>");
expect(renderToString(qweb, "test", { var: Markup`<ok></ok>` })).toBe("<div><ok></ok></div>");
});
test("t-raw and another sibling node", () => {