move core tests to tests/ folder

This commit is contained in:
Géry Debongnie
2019-03-14 11:40:23 +01:00
parent 027318bb98
commit e95af73065
7 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
roots: ["<rootDir>/demo/static"],
roots: ["<rootDir>/demo/static", "<rootDir>/tests"],
transform: {
"^.+\\.ts?$": "ts-jest"
},
@@ -1,4 +1,4 @@
import { Component, WEnv } from "../../../../src/component";
import { Component, WEnv } from "../src/component";
import {
makeDeferred,
makeTestFixture,
@@ -6,7 +6,7 @@ import {
nextMicroTick,
nextTick,
normalize
} from "../helpers";
} from "../demo/static/tests/helpers";
//------------------------------------------------------------------------------
// Setup and helpers
@@ -1,4 +1,4 @@
import { EventBus } from "../../../../src/event_bus";
import { EventBus } from "../src/event_bus";
describe("event bus behaviour", () => {
test("can subscribe and be notified", () => {
@@ -1,8 +1,8 @@
import sdAttributes from "../../../../libs/snabbdom/src/modules/attributes";
import sdListeners from "../../../../libs/snabbdom/src/modules/eventlisteners";
import { init } from "../../../../libs/snabbdom/src/snabbdom";
import { EvalContext, QWeb } from "../../../../src/qweb_vdom";
import { normalize } from "../helpers";
import sdAttributes from "../libs/snabbdom/src/modules/attributes";
import sdListeners from "../libs/snabbdom/src/modules/eventlisteners";
import { init } from "../libs/snabbdom/src/snabbdom";
import { EvalContext, QWeb } from "../src/qweb_vdom";
import { normalize } from "../demo/static/tests/helpers";
//------------------------------------------------------------------------------
// Setup and helpers
//------------------------------------------------------------------------------
@@ -5,7 +5,7 @@ import {
memoize,
debounce,
findInTree
} from "../../../../src/utils";
} from "../src/utils";
describe("escape", () => {
test("normal strings", () => {