message: test: for getCustomize
diff: @@ -705,4 +705,38 @@ describe("AppClient", () => {
  expect(mockClient.getLogs()[0].params).toEqual(params);
  });
  });
  +
  + describe("getCustomize", () => {
  + const params = { app: APP_ID };
  + describe("without preview", () => {
  + beforeEach(() => {
  + appClient.getCustomize(params);
  + });
  + it("should pass the path to the http client", () => {
  + expect(mockClient.getLogs()[0].path).toBe("/k/v1/app/customize.json");
  + });
  + it("should send a get request", () => {
  + expect(mockClient.getLogs()[0].method).toBe("get");
  + });
  + it("should pass app as a param to the http client", () => {
  + expect(mockClient.getLogs()[0].params).toEqual(params);
  + });
  + });
  + describe("preview: true", () => {
  + beforeEach(() => {
  + appClient.getCustomize({ ...params, preview: true });
  + });
  + it("should pass the path to the http client", () => {
  + expect(mockClient.getLogs()[0].path).toBe(
  + "/k/v1/preview/app/customize.json"
  + );
  + });
  + it("should send a get request", () => {
  + expect(mockClient.getLogs()[0].method).toBe("get");
  + });
  + it("should pass app and preview as a param to the http client", () => {
  + expect(mockClient.getLogs()[0].params).toEqual(params);
  + });
  + });
  + });
  });
  