[IMP] component: get env from constructor

closes #430
This commit is contained in:
Aaron Bohy
2019-10-31 13:31:10 +01:00
committed by Géry Debongnie
parent 8fbf2172c5
commit 05a678c039
14 changed files with 48 additions and 47 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
import { makeDeferred, makeTestEnv, makeTestFixture, nextTick } from "./helpers";
import { Component } from "../src/component/component";
import { Context, useContext } from "../src/context";
import { config } from "../src/config";
import { xml } from "../src/tags";
import { useState } from "../src/hooks";
@@ -18,7 +17,7 @@ let fixture: HTMLElement;
beforeEach(() => {
fixture = makeTestFixture();
config.env = makeTestEnv();
Component.env = makeTestEnv();
});
afterEach(() => {