message: test: for getFieldAcl, updateFieldAcl
diff: @@ -390,6 +390,58 @@ describe("AppClient", () => {
  expect(mockClient.getLogs()[0].params).toEqual(params);
  });
  });
  +
  + describe("getFieldAcl", () => {
  + const params = {
  + app: APP_ID
  + };
  + beforeEach(() => {
  + appClient.getFieldAcl(params);
  + });
  + it("should pass the path to the http client", () => {
  + expect(mockClient.getLogs()[0].path).toBe("/k/v1/field/acl.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("updateFieldAcl", () => {
  + const params = {
  + app: APP_ID,
  + rights: [
  + {
  + code: "foo",
  + entities: [
  + {
  + accessibility: "READ" as const,
  + entity: {
  + code: "bar",
  + type: "USER" as const
  + }
  + }
  + ]
  + }
  + ]
  + };
  +
  + beforeEach(() => {
  + appClient.updateFieldAcl(params);
  + });
  + it("should pass the path to the http client", () => {
  + expect(mockClient.getLogs()[0].path).toBe("/k/v1/preview/field/acl.json");
  + });
  + it("should send a put request", () => {
  + expect(mockClient.getLogs()[0].method).toBe("put");
  + });
  + it("should pass app and rights as a param to the http client", () => {
  + expect(mockClient.getLogs()[0].params).toEqual(params);
  + });
  + });
  +
  describe("evaluateRecordsAcl", () => {
  const params = {
  app: APP_ID,
  