import { __exports as toContainElement$1 } from "../../../../_virtual/to-contain-element.js";
import "./utils.js";
import { __exports as utils } from "../../../../_virtual/utils.js";
Object.defineProperty(toContainElement$1, "__esModule", {
  value: true
});
toContainElement$1.toContainElement = toContainElement;
var _utils = utils;
function toContainElement(container, element) {
  (0, _utils.checkHtmlElement)(container, toContainElement, this);
  if (element !== null) {
    (0, _utils.checkHtmlElement)(element, toContainElement, this);
  }
  return {
    pass: container.contains(element),
    message: () => {
      return [
        this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toContainElement`, "element", "element"),
        "",
        // eslint-disable-next-line @babel/new-cap
        this.utils.RECEIVED_COLOR(`${this.utils.stringify(container.cloneNode(false))} ${this.isNot ? "contains:" : "does not contain:"} ${this.utils.stringify(element ? element.cloneNode(false) : element)}
        `)
      ].join("\n");
    }
  };
}
export {
  toContainElement$1 as default
};
//# sourceMappingURL=to-contain-element.js.map
