import {
  searchService
} from "../../../chunk-YJTDUZ5S.js";
import {
  describe,
  globalExpect,
  test,
  vi
} from "../../../chunk-HSTSRNLJ.js";
import {
  openURL
} from "../../../chunk-IW7KNM7Q.js";
import "../../../chunk-2HGYYNE5.js";
import "../../../chunk-XVNW332R.js";
import "../../../chunk-HFAVKTDR.js";
import "../../../chunk-EI5KZ5NN.js";
import "../../../chunk-CBBS4CV7.js";
import "../../../chunk-SNOECVP4.js";
import "../../../chunk-UBB7JKND.js";
import "../../../chunk-NEOIQ6PN.js";
import "../../../chunk-7Q3MMWAC.js";
import "../../../chunk-MX4RJDBM.js";
import "../../../chunk-NB4NLOEJ.js";
import "../../../chunk-522OB3EU.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
