diff --git a/packages/rich-text/src/test/create.js b/packages/rich-text/src/test/create.js index cbe2d1e3985dde..3f79f4f0fb78ef 100644 --- a/packages/rich-text/src/test/create.js +++ b/packages/rich-text/src/test/create.js @@ -1,9 +1,3 @@ -/** - * External dependencies - */ - -import { JSDOM } from 'jsdom'; - /** * Internal dependencies */ @@ -14,9 +8,6 @@ import { registerFormatType } from '../register-format-type'; import { unregisterFormatType } from '../unregister-format-type'; import { getSparseArrayLength, spec, specWithRegistration } from './helpers'; -const { window } = new JSDOM(); -const { document } = window; - describe( 'create', () => { const em = { type: 'em' }; const strong = { type: 'strong' }; diff --git a/packages/rich-text/src/test/to-dom.js b/packages/rich-text/src/test/to-dom.js index 1d318fca88512f..1c6aa50623e951 100644 --- a/packages/rich-text/src/test/to-dom.js +++ b/packages/rich-text/src/test/to-dom.js @@ -1,20 +1,10 @@ -/** - * External dependencies - */ - -import { JSDOM } from 'jsdom'; - /** * Internal dependencies */ - import { toDom, applyValue } from '../to-dom'; import { createElement } from '../create-element'; import { spec } from './helpers'; -const { window } = new JSDOM(); -const { document } = window; - describe( 'recordToDom', () => { beforeAll( () => { // Initialize the rich-text store. diff --git a/packages/rich-text/src/test/to-html-string.js b/packages/rich-text/src/test/to-html-string.js index 251a29704f700e..507359e99ddcf0 100644 --- a/packages/rich-text/src/test/to-html-string.js +++ b/packages/rich-text/src/test/to-html-string.js @@ -1,22 +1,12 @@ -/** - * External dependencies - */ - -import { JSDOM } from 'jsdom'; - /** * Internal dependencies */ - import { create } from '../create'; import { toHTMLString } from '../to-html-string'; import { registerFormatType } from '../register-format-type'; import { unregisterFormatType } from '../unregister-format-type'; import { specWithRegistration } from './helpers'; -const { window } = new JSDOM(); -const { document } = window; - function createNode( HTML ) { const doc = document.implementation.createHTMLDocument( '' ); doc.body.innerHTML = HTML;