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 = { 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", () => {