import { MockNode } from './node' ; import { NODE_NAMES , NODE_TYPES } from './constants' ; export class MockComment extends MockNode { constructor ( ownerDocument , data ) { super ( ownerDocument , NODE_TYPES . COMMENT_NODE , NODE_NAMES . COMMENT_NODE , data ) ; } override cloneNode ( _deep ? ) { return new MockComment ( null , this . nodeValue ) ; } override get textContent ( ) { return this . nodeValue ; } override set textContent ( text ) { this . nodeValue = text ; } }