From a1e982aba57bf1abe009f7968b311ea7b4e849dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Fri, 17 May 2019 15:52:16 +0200 Subject: [PATCH] [REF] tests: rename makeTestWEnv to makeTestEnv --- tests/component.test.ts | 6 +++--- tests/helpers.ts | 2 +- tests/store.test.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/component.test.ts b/tests/component.test.ts index 5f15024e..69904ba6 100644 --- a/tests/component.test.ts +++ b/tests/component.test.ts @@ -2,7 +2,7 @@ import { Component, Env } from "../src/component"; import { makeDeferred, makeTestFixture, - makeTestWEnv, + makeTestEnv, nextMicroTick, nextTick, normalize @@ -22,7 +22,7 @@ let env: Env; beforeEach(() => { fixture = makeTestFixture(); - env = makeTestWEnv(); + env = makeTestEnv(); env.qweb.addTemplate( "Counter", `
` @@ -2315,7 +2315,7 @@ describe("can deduce template from name", () => { }); test("templates are found in proper qweb instance", async () => { - const env2 = makeTestWEnv(); + const env2 = makeTestEnv(); env.qweb.addTemplate("ABC", "Rochefort 8"); env2.qweb.addTemplate("ABC", "Rochefort 10"); class ABC extends Widget {} diff --git a/tests/helpers.ts b/tests/helpers.ts index f711aca7..a1898d6c 100644 --- a/tests/helpers.ts +++ b/tests/helpers.ts @@ -37,7 +37,7 @@ export function makeDeferred(): Deferred { return def; } -export function makeTestWEnv(): Env { +export function makeTestEnv(): Env { return { qweb: new QWeb() }; diff --git a/tests/store.test.ts b/tests/store.test.ts index 46f2ad03..601f3b47 100644 --- a/tests/store.test.ts +++ b/tests/store.test.ts @@ -2,7 +2,7 @@ import { Component, Env } from "../src/component"; import { connect, Store } from "../src/store"; import { makeTestFixture, - makeTestWEnv, + makeTestEnv, nextMicroTick, nextTick } from "./helpers"; @@ -401,7 +401,7 @@ describe("connecting a component to store", () => { beforeEach(() => { fixture = makeTestFixture(); - env = makeTestWEnv(); + env = makeTestEnv(); }); afterEach(() => {