Skip to content

Commit 1eb93ee

Browse files
committed
Fix unit tests for adding org leads
1 parent abd486d commit 1eb93ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unit/organizations.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
import { createJwt } from "./auth.test.js";
1616
import { marshall } from "@aws-sdk/util-dynamodb";
1717
import { genericConfig } from "../../src/common/config.js";
18+
import { randomUUID } from "node:crypto";
1819

1920
const app = await init();
2021
const ddbMock = mockClient(DynamoDBClient);
@@ -39,6 +40,9 @@ vi.mock("../../src/api/functions/entraId.js", () => {
3940
getGroupMetadata: vi.fn().mockImplementation(async () => {
4041
return { id: "abc123", displayName: "thing" };
4142
}),
43+
createM365Group: vi.fn().mockImplementation(async () => {
44+
return randomUUID();
45+
}),
4246
};
4347
});
4448

0 commit comments

Comments
 (0)