diff --git a/src/mock-doc/global.ts b/src/mock-doc/global.ts index ba535ea5110..7dc1a7648b6 100644 --- a/src/mock-doc/global.ts +++ b/src/mock-doc/global.ts @@ -1,3 +1,4 @@ +import { MockDocumentFragment } from './document-fragment'; import { MockAnchorElement, MockBaseElement, @@ -156,14 +157,16 @@ const WINDOW_PROPS = [ const GLOBAL_CONSTRUCTORS: [string, any][] = [ ['CustomEvent', MockCustomEvent], + ['DocumentFragment', MockDocumentFragment], + ['DOMParser', MockDOMParser], ['Event', MockEvent], - ['Headers', MockHeaders], ['FocusEvent', MockFocusEvent], + ['Headers', MockHeaders], ['KeyboardEvent', MockKeyboardEvent], ['MouseEvent', MockMouseEvent], ['Request', MockRequest], ['Response', MockResponse], - ['DOMParser', MockDOMParser], + ['ShadowRoot', MockDocumentFragment], ['HTMLAnchorElement', MockAnchorElement], ['HTMLBaseElement', MockBaseElement],