From c39891008d3696741cd0191569e9a709fd36d84d Mon Sep 17 00:00:00 2001
From: igor <igor.markin@vereign.com>
Date: Thu, 24 Dec 2020 15:16:16 +0300
Subject: [PATCH] Update dom lib

---
 __tests__/htmltext-outlook-outlook.test.ts |  2 +-
 __tests__/utils.ts                         | 11 ++++++-----
 yarn.lock                                  |  2 +-
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/__tests__/htmltext-outlook-outlook.test.ts b/__tests__/htmltext-outlook-outlook.test.ts
index 125c8dd..cd8385a 100644
--- a/__tests__/htmltext-outlook-outlook.test.ts
+++ b/__tests__/htmltext-outlook-outlook.test.ts
@@ -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"));
 });
diff --git a/__tests__/utils.ts b/__tests__/utils.ts
index c5fbc6a..5f320ee 100644
--- a/__tests__/utils.ts
+++ b/__tests__/utils.ts
@@ -1,14 +1,15 @@
 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 {
diff --git a/yarn.lock b/yarn.lock
index 7735452..5aef6bc 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -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"
-- 
GitLab