diff --git a/__tests__/plain-gmail-outlook.test.ts b/__tests__/plain-gmail-outlook.test.ts index f40d1f6a3c6c22ed1eff002e7ac9d4fa21a36f91..bcb98da21c7d6da66eadce0514d008b1eaa23182 100644 --- a/__tests__/plain-gmail-outlook.test.ts +++ b/__tests__/plain-gmail-outlook.test.ts @@ -22,6 +22,9 @@ describe("[Plain] Gmail-Outlook normalization", () => { "25reply", "26reply", "27reply", + "21forward", // missing file + "23forward", // missing file + "24forward", // missing file ]) ); }); diff --git a/__tests__/plain-outlook-outlook.test.ts b/__tests__/plain-outlook-outlook.test.ts index b4d729e076f256e96a4f2fead44ae4f98c944d4e..2298b6a19a88a400ba5d228d2f4ecb5bb46f6171 100644 --- a/__tests__/plain-outlook-outlook.test.ts +++ b/__tests__/plain-outlook-outlook.test.ts @@ -9,8 +9,26 @@ const testsPath = path.resolve(__dirname, `.${TESTS_GLOBAL_PATH}`); describe("Outlook emails Plain normalization", () => { const describeFunction = createDescribePlainTestCases(testsPath); describe("Emails Chrome", describeFunction("chrome")); - describe("Emails Edge", describeFunction("edge", ["21"])); - describe("Emails Safari", describeFunction("safari")); + describe( + "Emails Edge", + describeFunction("edge", [ + "21", + "08", // missing files + "10", // missing files + ]) + ); + describe( + "Emails Safari", + describeFunction("safari", [ + "08", // missing files + ]) + ); describe("Emails MacOS", describeFunction("macos", ["21", "23", "25"])); - describe("Emails Windows", describeFunction("windows", ["25"])); + describe( + "Emails Windows", + describeFunction("windows", [ + "25", + "10", // missing file + ]) + ); }); diff --git a/__tests__/utils.ts b/__tests__/utils.ts index 696873ffa580c414bf0d8a4801bf4f810691d7c7..7a0e7b901caccb3cd579f1746b92f0f20c267119 100644 --- a/__tests__/utils.ts +++ b/__tests__/utils.ts @@ -120,13 +120,7 @@ export const createDescribePlainTestCases = (testsPath: string) => ( test.each(testCasesDirs)("Case %s", (dirName: string) => { const testCasePath = testsCasesPath + "/" + dirName; - let normalizedPlain; - try { - normalizedPlain = getNormalizedPlain(testCasePath); - } catch (e) { - console.log(`Invalid test case: ${casesName}/${dirName}`); - return; - } + const normalizedPlain = getNormalizedPlain(testCasePath); const { sentPlain, receivedPlain } = normalizedPlain;