Skip to content
Snippets Groups Projects
Commit e3d85ebc authored by Igor Markin's avatar Igor Markin
Browse files

Fixes

parent 7d4f8bcf
No related branches found
No related tags found
1 merge request!5Rework with parse 5
......@@ -22,6 +22,9 @@ describe("[Plain] Gmail-Outlook normalization", () => {
"25reply",
"26reply",
"27reply",
"21forward", // missing file
"23forward", // missing file
"24forward", // missing file
])
);
});
......@@ -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
])
);
});
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment