mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[REF] components: remove .el
This commit is contained in:
committed by
Samuel Degueldre
parent
a727347d60
commit
cca8438d38
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user