/** * We can only make one test per file, since the debug tool modify in place * the owl object in a way that is difficult to undo. */ import { debugOwl } from "../../tools/debug"; import * as owl from "../../src/index"; import { Component, Env } from "../../src/component/component"; import { xml } from "../../src/tags"; import { makeTestFixture, makeTestEnv } from "../helpers"; let fixture: HTMLElement = makeTestFixture(); let env: Env = makeTestEnv(); Component.env = env; debugOwl(owl, { logScheduler: true }); test("log a specific message for render method calls if component is not mounted", async () => { const steps: string[] = []; const log = console.log; console.log = arg => steps.push(arg); class Parent extends Component { static template = xml`