mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] app: improve API, small refactoring
This commit is contained in:
committed by
Mathieu Duckerts-Antoine
parent
f4da50d350
commit
0b1c4dd4ef
@@ -1,4 +1,4 @@
|
||||
import { App, Component, mount, useState, xml } from "../../src";
|
||||
import { Component, mount, useState, xml } from "../../src";
|
||||
import { makeTestFixture, nextTick, snapshotEverything } from "../helpers";
|
||||
|
||||
let fixture: HTMLElement;
|
||||
@@ -64,7 +64,7 @@ describe("basics", () => {
|
||||
static components = { Child, OtherChild };
|
||||
}
|
||||
const env = { options: { flag: true } };
|
||||
const parent = await new App(Parent).configure({ env }).mount(fixture);
|
||||
const parent = await mount(Parent, fixture, { env });
|
||||
expect(fixture.innerHTML).toBe("<span>CHILD 1</span>");
|
||||
|
||||
env.options.flag = false;
|
||||
|
||||
Reference in New Issue
Block a user