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
Aaron Bohy
parent
772c275bd4
commit
aad6b806ba
@@ -21,7 +21,7 @@ describe("env handling", () => {
|
||||
class Test extends Component {
|
||||
static template = xml`<div/>`;
|
||||
}
|
||||
const component = await new App(Test).configure({ env }).mount(fixture);
|
||||
const component = await new App(Test, { env }).mount(fixture);
|
||||
expect(Object.isFrozen(component.env)).toBeTruthy();
|
||||
expect(component.env).toEqual({ foo: 42, bar: { value: 42 } });
|
||||
expect(() => {
|
||||
@@ -47,7 +47,7 @@ describe("env handling", () => {
|
||||
static components = { Child };
|
||||
}
|
||||
|
||||
await new App(Test).configure({ env }).mount(fixture);
|
||||
await new App(Test, { env }).mount(fixture);
|
||||
expect(child.env).toEqual(env);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user