mirror of
https://github.com/thelounge/thelounge
synced 2024-11-21 19:43:07 +00:00
Extract tests to shared/
This commit is contained in:
parent
e305e23c43
commit
60bb561e49
3 changed files with 4 additions and 6 deletions
|
@ -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 () {
|
|
@ -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", () => {
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue