import {
  require_tape
} from "./chunk-QWOE5YTB.js";
import {
  SearchHandler
} from "./chunk-W6ME65LV.js";
import "./chunk-SA7APTJR.js";
import "./chunk-HJ6L54YS.js";
import "./chunk-LSEFWW72.js";
import "./chunk-SKREEF3H.js";
import "./chunk-HYOEWQ5P.js";
import "./chunk-HBW42TDT.js";
import "./chunk-G6O3URDN.js";
import "./chunk-FN5XPUPH.js";
import "./chunk-IIT367QZ.js";
import "./chunk-RZGEKL77.js";
import "./chunk-UI7OCM2A.js";
import "./chunk-YZK37YCC.js";
import "./chunk-7EMWHCVW.js";
import "./chunk-7IYJZZQI.js";
import "./chunk-M3J4MINX.js";
import "./chunk-PF4DSFDR.js";
import "./chunk-QH6W3NVF.js";
import "./chunk-NOEAT6CX.js";
import "./chunk-4UWS5Y3N.js";
import "./chunk-DD4R5P6W.js";
import "./chunk-JNITUVXP.js";
import "./chunk-KSGA62R2.js";
import "./chunk-LOZEKOES.js";
import "./chunk-TOU7EVFQ.js";
import "./chunk-OAWQ6LOO.js";
import "./chunk-TLT4YIG3.js";
import "./chunk-KYBIQBXE.js";
import {
  select_default
} from "./chunk-I6Y4O3RR.js";
import "./chunk-OMR2DT66.js";
import "./chunk-DQC5FFGV.js";
import {
  __toESM
} from "./chunk-HFNDKYVF.js";

// termdb/handlers/test/ssGSEA.unit.spec.ts
var import_tape = __toESM(require_tape(), 1);
function getHolder() {
  return select_default("body").append("div");
}
(0, import_tape.default)("\n", function(test) {
  test.comment("-***- termdb/handlers/ssGSEA -***-");
  test.end();
});
(0, import_tape.default)("init() should throw when genomeObj.termdbs is missing", async (test) => {
  const handler = new SearchHandler();
  const holder = getHolder();
  try {
    await handler.init({
      holder,
      callback: () => {
      },
      app: {},
      genomeObj: { name: "hg38" }
    });
    test.fail("Should throw when genesetDbName is missing");
  } catch (e) {
    test.match(String(e), /genesetDbName missing/, "Should throw expected error message");
  }
  if (test["_ok"]) holder.remove();
  test.end();
});
(0, import_tape.default)("init() should throw when genomeObj.termdbs is empty", async (test) => {
  const handler = new SearchHandler();
  const holder = getHolder();
  try {
    await handler.init({
      holder,
      callback: () => {
      },
      app: {},
      genomeObj: { name: "hg38", termdbs: {} }
    });
    test.fail("Should throw when no databases are available");
  } catch (e) {
    test.match(String(e), /genesetDbName missing/, "Should throw expected error message for empty termdbs");
  }
  if (test["_ok"]) holder.remove();
  test.end();
});
//# sourceMappingURL=ssGSEA.unit.spec-XJ3W4NWX.js.map
