"use strict";
const toContainElement$1 = require("../../../../_virtual/to-contain-element.cjs");
require("./utils.cjs");
const utils = require("../../../../_virtual/utils.cjs");
Object.defineProperty(toContainElement$1.__exports, "__esModule", {
  value: true
});
toContainElement$1.__exports.toContainElement = toContainElement;
var _utils = utils.__exports;
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");
    }
  };
}
module.exports = toContainElement$1.__exports;
//# sourceMappingURL=to-contain-element.cjs.map
