/** @odoo-module */
import { loadBundle, LazyComponent } from "@web/core/assets";
import { registerCleanup } from "@web/../tests/helpers/cleanup";
import { makeTestEnv } from "@web/../tests/helpers/mock_env";
import { getFixture, patchWithCleanup } from "@web/../tests/helpers/utils";
const { Component, App, xml } = owl;
QUnit.module("utils", () => {
QUnit.module("Assets");
QUnit.test("LazyComponent loads the required bundle", async function (assert) {
class Test extends Component {
get childProps() {
return {
onCreated: () => assert.step("Lazy test component created"),
};
}
}
Test.template = xml`