diff --git a/__tests__/html-outlook-gmail.test.ts b/__tests__/html-outlook-gmail.test.ts new file mode 100644 index 0000000000000000000000000000000000000000..c0e8ad88283b0d459321ec0c67fd1e4a39d6f048 --- /dev/null +++ b/__tests__/html-outlook-gmail.test.ts @@ -0,0 +1,16 @@ +import { describe } from "@jest/globals"; +import { EMAIL_VENDORS } from "../src"; +import { createDescribeHtmlTestCases } from "./utils"; +const path = require("path"); + +const TESTS_GLOBAL_PATH = "/files/outlook-gmail"; +const testsPath = path.resolve(__dirname, `.${TESTS_GLOBAL_PATH}`); + +describe("[HTML] Outlook-GMail emails normalization", () => { + const describeFunction = createDescribeHtmlTestCases( + testsPath, + EMAIL_VENDORS.OUTLOOK + ); + + describe("Chrome-Chrome", describeFunction("chrome-chrome", [])); +}); diff --git a/__tests__/htmltext-outlook-gmail.test.ts b/__tests__/htmltext-outlook-gmail.test.ts new file mode 100644 index 0000000000000000000000000000000000000000..08384831c2eaa9571988e89db1464f8e450aa73a --- /dev/null +++ b/__tests__/htmltext-outlook-gmail.test.ts @@ -0,0 +1,18 @@ +import { describe } from "@jest/globals"; +import { createDescribePseudoPlainTestCases } from "./utils"; +import { EMAIL_VENDORS } from "../src"; + +const path = require("path"); + +const TESTS_GLOBAL_PATH = "/files/outlook-gmail"; +const testsPath = path.resolve(__dirname, `.${TESTS_GLOBAL_PATH}`); + +describe("[Pseudo PLAIN] Outlook-Gmail normalization", () => { + const describeFunction = createDescribePseudoPlainTestCases( + testsPath, + EMAIL_VENDORS.OUTLOOK + ); + + // ["01"] - is a filter. Pass here names of directories with test cases you want to check + describe("Chrome-Chrome", describeFunction("chrome-chrome")); +}); diff --git a/__tests__/plain-outlook-gmail.test.ts b/__tests__/plain-outlook-gmail.test.ts new file mode 100644 index 0000000000000000000000000000000000000000..f74daacf5c16a94c018e0e2f7c751addbecf185d --- /dev/null +++ b/__tests__/plain-outlook-gmail.test.ts @@ -0,0 +1,12 @@ +import { describe } from "@jest/globals"; +import { createDescribePlainTestCases } from "./utils"; +const path = require("path"); + +const TESTS_GLOBAL_PATH = "/files/outlook-gmail"; + +const testsPath = path.resolve(__dirname, `.${TESTS_GLOBAL_PATH}`); + +describe("[Plain] Outlook-Gmail normalization", () => { + const describeFunction = createDescribePlainTestCases(testsPath); + describe("Chrome-Chrome", describeFunction("chrome-chrome")); +});