import {
  searchService
} from "../../../chunk-JFEYF7MC.js";
import {
  describe,
  globalExpect,
  test,
  vi
} from "../../../chunk-ZGHNMRBX.js";
import {
  openURL
} from "../../../chunk-W63Q5AFT.js";
import "../../../chunk-XEDHKQZA.js";
import "../../../chunk-27ILOE3X.js";
import "../../../chunk-SNOECVP4.js";
import "../../../chunk-6XKWVDB6.js";
import "../../../chunk-UBB7JKND.js";
import "../../../chunk-T2GATXSP.js";
import "../../../chunk-XVNW332R.js";
import "../../../chunk-A3JXD7N7.js";
import "../../../chunk-7Q3MMWAC.js";
import "../../../chunk-MX4RJDBM.js";
import "../../../chunk-NB4NLOEJ.js";
import "../../../chunk-522OB3EU.js";
import "../../../chunk-PNN7RS7Y.js";
import {
  init_cjs_shims
} from "../../../chunk-POZ5MGPT.js";

// src/cli/services/commands/search.test.ts
init_cjs_shims();
vi.mock("@shopify/cli-kit/node/system");
describe("searchService", () => {
  test("the right URL is open in the system when a query is passed", async () => {
    await searchService("deploy app"), globalExpect(openURL).toBeCalledWith("https://shopify.dev?search=deploy+app");
  }), test("the right URL is open in the system when a query is not passed", async () => {
    await searchService(), globalExpect(openURL).toBeCalledWith("https://shopify.dev?search=");
  });
});
//# sourceMappingURL=search.test.js.map
