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 cleanIrcMessage from "../../../../../client/js/helpers/ircmessageparser/cleanIrcMessage";
import {cleanIrcMessage} from "../../shared/irc";
describe("cleanIrcMessage", function () {
it("should remove all formatting", function () {

View file

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

View file

@ -3,7 +3,8 @@
"include": [
"**/*",
"../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. */,
"files": [
"../babel.config.cjs",