mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[REF] move app and compiler code around
This commit is contained in:
committed by
Samuel Degueldre
parent
06ea6d2490
commit
a187a376a0
@@ -1,4 +1,4 @@
|
||||
import { TemplateSet } from "../../src/compiler/template_helpers";
|
||||
import { TemplateSet } from "../../src/app/template_helpers";
|
||||
import { mount } from "../../src/blockdom";
|
||||
import { makeTestFixture, renderToBdom, renderToString, snapshotEverything } from "../helpers";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TemplateSet } from "../../src/compiler/template_helpers";
|
||||
import { TemplateSet } from "../../src/app/template_helpers";
|
||||
import { mount } from "../../src/blockdom";
|
||||
import { renderToBdom, snapshotEverything } from "../helpers";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TemplateSet } from "../../src/compiler/template_helpers";
|
||||
import { TemplateSet } from "../../src/app/template_helpers";
|
||||
import { renderToString, TestContext, compile } from "../helpers";
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { makeTestFixture, snapshotApp } from "../helpers";
|
||||
import { Component, xml } from "../../src";
|
||||
import { App, DEV_MSG } from "../../src/app";
|
||||
import { App, DEV_MSG } from "../../src/app/app";
|
||||
import { validateProps } from "../../src/component/props_validation";
|
||||
|
||||
let fixture: HTMLElement;
|
||||
|
||||
+4
-3
@@ -14,8 +14,9 @@ import {
|
||||
} from "../src";
|
||||
import { BDom } from "../src/blockdom";
|
||||
import { blockDom } from "../src";
|
||||
import { CompileOptions, compileTemplate, Template } from "../src/compiler/code_generator";
|
||||
import { globalTemplates, TemplateSet, UTILS } from "../src/compiler/template_helpers";
|
||||
import { compile as compileTemplate, Template } from "../src/compiler";
|
||||
import { CodeGenOptions } from "../src/compiler/code_generator";
|
||||
import { globalTemplates, TemplateSet, UTILS } from "../src/app/template_helpers";
|
||||
import { xml } from "../src/tags";
|
||||
|
||||
const mount = blockDom.mount;
|
||||
@@ -36,7 +37,7 @@ export function makeTestFixture() {
|
||||
return fixture;
|
||||
}
|
||||
|
||||
export function snapshotTemplateCode(template: string, options?: CompileOptions) {
|
||||
export function snapshotTemplateCode(template: string, options?: CodeGenOptions) {
|
||||
expect(compileTemplate(template, options).toString()).toMatchSnapshot();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user