[REF] component: make observer and state optional

This commit is contained in:
Géry Debongnie
2019-04-18 10:10:18 +02:00
parent 29111a5c10
commit 3b3fd8a6c9
2 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ describe("basic widget properties", () => {
test("props and state are properly defined", async () => {
const widget = new Widget(env);
expect(widget.props).toEqual({});
expect(widget.state).toEqual({});
expect(widget.state).toEqual(undefined);
});
test("has no el after creation", async () => {