Skip to content

Commit 95b4295

Browse files
committed
fix
1 parent cfbc95d commit 95b4295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/accessListUtils.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe("accessListUtils", () => {
1313
} as unknown as ApiClient;
1414
await ensureCurrentIpInAccessList(apiClient, "projectId");
1515
// eslint-disable-next-line @typescript-eslint/unbound-method
16-
expect(apiClient.createProjectIpAccessList).toHaveBeenCalledWith({
16+
expect(apiClient.createAccessListEntry).toHaveBeenCalledWith({
1717
params: { path: { groupId: "projectId" } },
1818
body: [{ groupId: "projectId", ipAddress: "127.0.0.1", comment: DEFAULT_ACCESS_LIST_COMMENT }],
1919
});
@@ -34,7 +34,7 @@ describe("accessListUtils", () => {
3434
} as unknown as ApiClient;
3535
await ensureCurrentIpInAccessList(apiClient, "projectId");
3636
// eslint-disable-next-line @typescript-eslint/unbound-method
37-
expect(apiClient.createProjectIpAccessList).toHaveBeenCalledWith({
37+
expect(apiClient.createAccessListEntry).toHaveBeenCalledWith({
3838
params: { path: { groupId: "projectId" } },
3939
body: [{ groupId: "projectId", ipAddress: "127.0.0.1", comment: DEFAULT_ACCESS_LIST_COMMENT }],
4040
});

0 commit comments

Comments
 (0)