[REF] components: remove .el

This commit is contained in:
Géry Debongnie
2021-12-20 13:54:52 +01:00
committed by Samuel Degueldre
parent a727347d60
commit cca8438d38
17 changed files with 80 additions and 104 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ import {
useSubEnv,
xml,
} from "../../src/index";
import { makeTestFixture, nextTick, snapshotEverything } from "../helpers";
import { elem, makeTestFixture, nextTick, snapshotEverything } from "../helpers";
let fixture: HTMLElement;
@@ -506,7 +506,7 @@ describe("hooks", () => {
// Wait for an owl render
await new Promise((resolve) => requestAnimationFrame(resolve));
// Value was correctly changed inside the component
expect(component.el!.textContent).toBe("1");
expect(elem(component).textContent).toBe("1");
steps.push("after state mutation");
await component.__owl__.destroy();