Extract tests to shared/

This commit is contained in:
Reto Brunner 2023-01-29 17:57:27 +01:00
parent e305e23c43
commit 60bb561e49
3 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import {expect} from "chai"; import {expect} from "chai";
import cleanIrcMessage from "../../../../../client/js/helpers/ircmessageparser/cleanIrcMessage"; import {cleanIrcMessage} from "../../shared/irc";
describe("cleanIrcMessage", function () { describe("cleanIrcMessage", function () {
it("should remove all formatting", function () { it("should remove all formatting", function () {

View File

@ -1,8 +1,5 @@
import {expect} from "chai"; import {expect} from "chai";
import { import {findLinks, findLinksWithSchema} from "../../shared/linkify";
findLinks,
findLinksWithSchema,
} from "../../../../../client/js/helpers/ircmessageparser/findLinks";
describe("findLinks", () => { describe("findLinks", () => {
it("should find url", () => { it("should find url", () => {

View File

@ -3,7 +3,8 @@
"include": [ "include": [
"**/*", "**/*",
"../client", "../client",
"../server" "../server",
"../shared"
] /* Specifies a list of glob patterns that match files to be included in compilation. If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. Requires TypeScript version 2.0 or later. */, ] /* Specifies a list of glob patterns that match files to be included in compilation. If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. Requires TypeScript version 2.0 or later. */,
"files": [ "files": [
"../babel.config.cjs", "../babel.config.cjs",