[REF] autoformat some files

This commit is contained in:
Aaron Bohy
2019-05-10 15:03:41 +02:00
committed by Géry Debongnie
parent e04c5b1c6b
commit 8ee0973dab
2 changed files with 9 additions and 7 deletions
+3 -3
View File
@@ -1554,7 +1554,7 @@ describe("random stuff/miscellaneous", () => {
</div>`;
widgets = { D, E, F };
name = "C";
state = {flag: true};
state = { flag: true };
constructor(parent, props) {
super(parent, props);
@@ -1618,7 +1618,7 @@ describe("random stuff/miscellaneous", () => {
"D:mounted",
"E:mounted",
"C:mounted",
"A:mounted",
"A:mounted"
]);
// update
@@ -1637,7 +1637,7 @@ describe("random stuff/miscellaneous", () => {
"C:_patch",
"E:willUnmount",
"E:destroy",
"E:destroy", // maybe should look into this
"E:destroy", // maybe should look into this
"F:_patch(from _mount)",
"F:mounted",
"D:_patch",
+6 -4
View File
@@ -748,7 +748,6 @@ describe("foreach", () => {
expect(console.warn).toHaveBeenCalledTimes(1);
console.warn = consoleWarn;
});
});
describe("misc", () => {
@@ -982,14 +981,17 @@ describe("t-ref", () => {
});
test("refs in a loop", () => {
qweb.addTemplate("test", `
qweb.addTemplate(
"test",
`
<div>
<t t-foreach="items" t-as="item">
<div t-ref="item" t-key="item"><t t-esc="item"/></div>
</t>
</div>`);
</div>`
);
let refs: any = {};
renderToDOM(qweb, "test", { refs, items: [1,2,3] });
renderToDOM(qweb, "test", { refs, items: [1, 2, 3] });
expect(Object.keys(refs)).toEqual(["1", "2", "3"]);
});
});