refactor: update microsoft platform slug to office365 for consistency (#23179)

* refactor: update Microsoft platform slug to office365 for consistency

* Update server.test.ts
This commit is contained in:
Somay Chauhan authored and GitHub committed 2025-08-19 15:04:47 +03:00
1 parent 02e486d757
commit 4a23832388
2 files changed
+1 -16

No files matched your search

@@ -213,21 +213,6 @@ describe("getAllDelegationCredentialsForUserIncludeServiceAccountKey", () => {
buildDelegationCredentialGoogleMeetCredential(),
]);
});
it("should return empty array for non-Google platforms(as they are not supported yet)", async () => {
vi.mocked(
DelegationCredentialRepository.findUniqueByOrgMemberEmailIncludeSensitiveServiceAccountKey
).mockResolvedValue(
buildMockDelegationCredential({
workspacePlatform: {
name: "Microsoft",
slug: "microsoft",
},
})
);
const result = await getAllDelegationCredentialsForUserIncludeServiceAccountKey({ user: mockUser });
expect(result).toEqual([]);
});
});
describe("buildAllCredentials", () => {
@@ -80,7 +80,7 @@ export async function toggleDelegationCredentialEnabled(
if (slug === "google") {
calendarAppName = "Google Calendar";
conferencingAppName = "Google Meet";
} else if (slug === "microsoft") {
} else if (slug === "office365") {
calendarAppName = "Microsoft 365";
conferencingAppName = "Microsoft Teams";
} else {