Skip to content

Commit eff40c9

Browse files
committed
fix
1 parent 95b4295 commit eff40c9

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
@@ -8,7 +8,7 @@ describe("accessListUtils", () => {
88
it("should add the current IP to the access list", async () => {
99
const apiClient = {
1010
getIpInfo: vi.fn().mockResolvedValue({ currentIpv4Address: "127.0.0.1" } as never),
11-
createProjectIpAccessList: vi.fn().mockResolvedValue(undefined as never),
11+
createAccessListEntry: vi.fn().mockResolvedValue(undefined as never),
1212
logger: new NullLogger(),
1313
} as unknown as ApiClient;
1414
await ensureCurrentIpInAccessList(apiClient, "projectId");
@@ -22,7 +22,7 @@ describe("accessListUtils", () => {
2222
it("should not fail if the current IP is already in the access list", async () => {
2323
const apiClient = {
2424
getIpInfo: vi.fn().mockResolvedValue({ currentIpv4Address: "127.0.0.1" } as never),
25-
createProjectIpAccessList: vi
25+
createAccessListEntry: vi
2626
.fn()
2727
.mockRejectedValue(
2828
ApiClientError.fromError(

0 commit comments

Comments
 (0)