message: test: for updateCustomize
diff: @@ -739,4 +739,46 @@ describe("AppClient", () => {
  });
  });
  });
  +
  + describe("updatetCustomize", () => {
  + const resource = {
  + js: [
  + {
  + type: "URL" as const,
  + url: "https://www.example.com/example-mobile.js"
  + }
  + ],
  + css: [
  + {
  + type: "FILE" as const,
  + file: {
  + fileKey: "ddfc8e89-7aa3-4350-b9ab-3a75c9cf46b3"
  + }
  + }
  + ]
  + };
  + const params = {
  + app: APP_ID,
  + scope: "ALL" as const,
  + desktop: resource,
  + mobile: resource,
  + revision: REVISION
  + };
  + describe("customize resources are specified", () => {
  + beforeEach(() => {
  + appClient.updateCustomize(params);
  + });
  + 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 put request", () => {
  + expect(mockClient.getLogs()[0].method).toBe("put");
  + });
  + it("should pass app, scope, desktop, mobile and revision as a param to the http client", () => {
  + expect(mockClient.getLogs()[0].params).toEqual(params);
  + });
  + });
  + });
  });
  