diff --git a/__tests__/htmltext-outlook-outlook.test.ts b/__tests__/htmltext-outlook-outlook.test.ts index 125c8dd68d541f8e2e5f79a420b72903e2e6847b..cd8385a0c798c16298f5d2d33596481705f17aa4 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 c5fbc6a1a964e7b78240db160d9d53f6d612e0b4..5f320eebb3b6a72d76255cab7182b969a7299633 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 7735452501a1bf4dcfbaefe3995b606d823419ad..5aef6bc47e46e05d7633144e7ed54f10dba76508 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"