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

Update dom lib

parent 245071f6
No related branches found
No related tags found
1 merge request!17Populate attachments before normalisation
......@@ -14,6 +14,6 @@ describe("[Pseudo PLAIN] Outlook-Outlook normalization", () => {
);
describe("Chrome-Chrome", describeFunction("chrome-chrome"));
describe("MacOS-MacOS", describeFunction("macos-macos", ["09", "s"]));
describe("MacOS-MacOS", describeFunction("macos-macos", ["09"]));
describe("Windows-Windows", describeFunction("windows-windows"));
});
import { JSDOM } from "jsdom";
const fs = require("fs");
import MIMEParser from "@vereign/mime-parser";
const SENT_EML_NAME = "sent.eml";
const RECEIVED_EML_NAME = "received.eml";
import { PlainNormalizer, HTMLNormalizer } from "../src";
import { expect, test } from "@jest/globals";
import { DOM } from "@vereign/dom";
import { diffStringsUnified } from "jest-diff";
import { PlainNormalizer, HTMLNormalizer } from "../src";
const SENT_EML_NAME = "sent.eml";
const RECEIVED_EML_NAME = "received.eml";
expect.extend({
toEqualWithDiff(target, source) {
let pass = true;
......@@ -232,7 +233,7 @@ export const getDOMDocuments = (
const sentMime = getMime(`${testCasePath}/${SENT_EML_NAME}`);
const receivedMime = getMime(`${testCasePath}/${RECEIVED_EML_NAME}`);
const sentDOM = new JSDOM(sentMime.getHTML());
const sentDOM = new DOM(sentMime.getHTML());
const receivedDOM = new JSDOM(receivedMime.getHTML());
return {
......
......@@ -1257,7 +1257,7 @@
"@vereign/dom@git+ssh://git@code.vereign.com:code/js-toolbox/gsdom.git":
version "1.0.0"
resolved "git+ssh://git@code.vereign.com:code/js-toolbox/gsdom.git#7482f7790813e81324e059ff2195fdf7c190f8f1"
resolved "git+ssh://git@code.vereign.com:code/js-toolbox/gsdom.git#fa7eba9447ed58cdb74c7cc77d5e8af4a8349a59"
dependencies:
"@types/parse5" "^5.0.3"
parse5 "^6.0.1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment