mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
move core tests to tests/ folder
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
roots: ["<rootDir>/demo/static"],
|
roots: ["<rootDir>/demo/static", "<rootDir>/tests"],
|
||||||
transform: {
|
transform: {
|
||||||
"^.+\\.ts?$": "ts-jest"
|
"^.+\\.ts?$": "ts-jest"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, WEnv } from "../../../../src/component";
|
import { Component, WEnv } from "../src/component";
|
||||||
import {
|
import {
|
||||||
makeDeferred,
|
makeDeferred,
|
||||||
makeTestFixture,
|
makeTestFixture,
|
||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
nextMicroTick,
|
nextMicroTick,
|
||||||
nextTick,
|
nextTick,
|
||||||
normalize
|
normalize
|
||||||
} from "../helpers";
|
} from "../demo/static/tests/helpers";
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Setup and helpers
|
// Setup and helpers
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { EventBus } from "../../../../src/event_bus";
|
import { EventBus } from "../src/event_bus";
|
||||||
|
|
||||||
describe("event bus behaviour", () => {
|
describe("event bus behaviour", () => {
|
||||||
test("can subscribe and be notified", () => {
|
test("can subscribe and be notified", () => {
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import sdAttributes from "../../../../libs/snabbdom/src/modules/attributes";
|
import sdAttributes from "../libs/snabbdom/src/modules/attributes";
|
||||||
import sdListeners from "../../../../libs/snabbdom/src/modules/eventlisteners";
|
import sdListeners from "../libs/snabbdom/src/modules/eventlisteners";
|
||||||
import { init } from "../../../../libs/snabbdom/src/snabbdom";
|
import { init } from "../libs/snabbdom/src/snabbdom";
|
||||||
import { EvalContext, QWeb } from "../../../../src/qweb_vdom";
|
import { EvalContext, QWeb } from "../src/qweb_vdom";
|
||||||
import { normalize } from "../helpers";
|
import { normalize } from "../demo/static/tests/helpers";
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Setup and helpers
|
// Setup and helpers
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
memoize,
|
memoize,
|
||||||
debounce,
|
debounce,
|
||||||
findInTree
|
findInTree
|
||||||
} from "../../../../src/utils";
|
} from "../src/utils";
|
||||||
|
|
||||||
describe("escape", () => {
|
describe("escape", () => {
|
||||||
test("normal strings", () => {
|
test("normal strings", () => {
|
||||||
Reference in New Issue
Block a user