From 8ee0973dab05d65372503ffa1ff6ce1bd5528ee8 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Fri, 10 May 2019 15:03:41 +0200 Subject: [PATCH] [REF] autoformat some files --- tests/component.test.ts | 6 +++--- tests/qweb.test.ts | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/component.test.ts b/tests/component.test.ts index c7540c46..a53a1e2e 100644 --- a/tests/component.test.ts +++ b/tests/component.test.ts @@ -1554,7 +1554,7 @@ describe("random stuff/miscellaneous", () => { `; 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", diff --git a/tests/qweb.test.ts b/tests/qweb.test.ts index cd4e1205..68b1c849 100644 --- a/tests/qweb.test.ts +++ b/tests/qweb.test.ts @@ -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", + `
-
`); + ` + ); 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"]); }); });